• 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.

What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!