This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes Does JBoss behave so much different from specs? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "Does JBoss behave so much different from specs?" Watch "Does JBoss behave so much different from specs?" New topic
Author

Does JBoss behave so much different from specs?

Mike Rocks
Greenhorn

Joined: Oct 14, 2008
Posts: 3
Hello Ranchers,

I am going through Enthuwares questions and I want to test the given answers. There is a question on transaction-handling like following:



I created an example but JBoss doesn't behave like mentioned above. The A-Bean doesn't get an EJBException (it can't be caught) but it gets an IllegalStateException.

Here is my code for the client-class:


The code for the ABean-class. Here the IllegalStateException raises instead of the EJBExceptio:


And the code for the BBean-class:


Why does the IllegalStateException raise in the ABean-class instead of the EJBException?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Does JBoss behave so much different from specs?
 
Similar Threads
Doubt in Transaction
Transactions & Exception doubt 2
When is a Bean Discarded?
Transaction Question
sample Question