Win a copy of The Business Blockchain this week in the Cloud forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

HF EJB p470 getRollbackOnly

 
Christopher Arthur
Ranch Hand
Posts: 149
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm almost sure this is a misprint, but it isn't documented in the errata that I have:
The bottom of page 470 reads
"...you must know that if you invoke getRollbackOnly on a bean's context, the container must not commit."
This should have read setRollbackOnly, right? I think that the get method would just be for checking on the rollback of a transaction; it doesn't make sense that if you just checked on it, you would cause a rollback.
C. Arthur
 
Vishwa Kumba
Ranch Hand
Posts: 1066
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You are right.
It has been mentioned before and also updated in the errata list at OReilly site.
http://www.oreilly.com/catalog/hfjejb/errata/hfjejb.unconfirmed
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic