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,
posted 3 years ago
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.