wood burning stoves 2.0*
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes Doubt from ejbcerticate mock exam Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "Doubt from ejbcerticate mock exam" Watch "Doubt from ejbcerticate mock exam" New topic
Author

Doubt from ejbcerticate mock exam

Pooja Gupta
Greenhorn

Joined: Nov 30, 2002
Posts: 15
One of the answers explanation says " A transaction is not rolled backed by the container as a result of a system exception thrown when the transaction runs with an unspecified transaction context and also when a bean is declared with bean-managed transaction demaraction. "

Now, in HF book (page 534), it's written that container will always roll back the exception once a system exception is thrown. It doesn't say any thing about whether it is BMT/CMT. Which is correct - HF or ejbCertificate exam?

Thanks
Pooja


Pooja Gupta<br />SCJP, SCWCD(preparing)
Keerthi P
Ranch Hand

Joined: Aug 19, 2003
Posts: 203
Be it BMT or CMT, the container always rolls back a started transaction if the bean instance throws a System Exception. The container destroys the instance when a system exception is thrown. There is no point in keeping the transaction open when the instance that started it no longer exists. Makes sense?


Cheers.<br />Keerthi<br />(SCJP, SCWCD, SCBCD)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Doubt from ejbcerticate mock exam