Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Marked for rollback and rollback( )

 
Shivani Chandna
Ranch Hand
Posts: 380
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Difference between marking a Tx for rollback and rollback ( )
Just for info for ranchers preparing for EJB 3.0
==================

If op fails � in Entity Tx then Containers MARKS it for rollback.

Marking for rollback != rollback .
Rollback only when rollback called !!

If marked for rollback and commit called then RollbackException . Avoid this by using getRollbackOnly to know status.

Until Tx rollback � Tx is still active and Marked.

Regards,
Shivani
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic