aspose file tools
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes Does the container call setRollbackOnly() method? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Groovy Fundamentals video training course this week in the Groovy forum!
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "Does the container call setRollbackOnly() method?" Watch "Does the container call setRollbackOnly() method?" New topic
Author

Does the container call setRollbackOnly() method?

Alibabra Sanjie
Ranch Hand

Joined: Feb 09, 2004
Posts: 147
Does the container call setRollbackOnly() method to mark for Rollback when the container receive an system Exception, and it is in a client initiated transaction?


Alibabra
Roger Chung-Wee
Ranch Hand

Joined: Sep 29, 2002
Posts: 1683
setRollbackOnly() is for the the bean provider to use. When a transaction needs to be rolled back, the Container will typically instruct the transaction manager to mark the transaction for rollback.


SCJP 1.4, SCWCD 1.3, SCBCD 1.3
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Does the container call setRollbackOnly() method?