File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 Head First Android this week in the Android 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?
 
jQuery in Action, 3rd edition