This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes EJB 3, System Exception question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "EJB 3, System Exception question" Watch "EJB 3, System Exception question" New topic

EJB 3, System Exception question

Camilo Morales
Ranch Hand

Joined: Jul 14, 2007
Posts: 92
A System exception stills RollBack the TX even if I catch it with a RunTimeException try/catch block ?


Camilo Morales<br />SCJP 5, SCBCD 5
Gowher Naik
Ranch Hand

Joined: Feb 07, 2005
Posts: 643
According EJB2.0 Specification Chapter 18.2.2
If the bean method encounters a RuntimeException or error, it should simply propagate the error from the bean method to the Container (i.e., the bean method does not have to catch the exception).

So according me in such case it is bean provider responsibility to rollback.
I agree. Here's the link:
subject: EJB 3, System Exception question
Similar Threads
What Exception if database down
Resume of program
TCP/IP Connection lost
A system exception must be an unchecked exception?
What Exceptions Stop the code in between?