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 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 Murach's Java Servlets and JSP this week in the Servlets 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: 229
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Exception handling for EJB 2.0 in Jboss 4.2
 
Similar Threads
CMP Exception Handling
[JBOSS 4.2] startup failed with Eclipse 3.3 Europa
Jboss is not starting from eclipse
Confusion in Exception handling Ejb 2.0 in Jboss
Problem in running ejb sample program