Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Exception handling for EJB 2.0 in Jboss 4.2

 
Kousik Majumder
Ranch Hand
Posts: 239
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
david roux
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic