This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes Exception handling for EJB 2.0 in Jboss 4.2 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Exception handling for EJB 2.0 in Jboss 4.2" Watch "Exception handling for EJB 2.0 in Jboss 4.2" New topic
Author

Exception handling for EJB 2.0 in Jboss 4.2

Kousik Majumder
Ranch Hand

Joined: Sep 30, 2007
Posts: 233
Hi all,

I am facing a problem migrating code from Weblogic 8.0 to Jboss 4.2.
Some business exception(when Jboss calls method like ejbStore(),ejbLoad() etc.) that occurs in EJB implementation(e.g EnrollmentImpl) class when returned to client code wrapped with Jboss's own exception like RollBackException , so the original exception is lost which need to be shown at client.

Is there a generic way to show the original exception message other that Jboss thrown exception message?Otherwise I need to modify all the client code to search for original message.
Can somebody tell me the elegant way to handle this kind of scenario as I am new in EJB.


Thanks in Advance,
Kousik
david roux
Greenhorn

Joined: May 15, 2012
Posts: 1
did you find the answer at this question? I'm facing exactly the same : my business exception is lost in a jboss RollbackException which is displayed to the user.

thanks
 
 
subject: Exception handling for EJB 2.0 in Jboss 4.2