This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum 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
Register / Login


JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Reply 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://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Does JBoss behave so much different from specs?
 
Similar Threads
When is a Bean Discarded?
Transactions & Exception doubt 2
Transaction Question
Doubt in Transaction
sample Question