problem with ApplicationException handling in EJB3
posted 9 years ago
I am having problems in handling exceptions coming out of the EJB3 tier (sessions bean method call) at the web tier. I have the application running on JBoss.4.0.4 GA on EJB3 profile with call by value isolation setup. Any application exception that i want to be thrown from the remote method call to be handled at the web tier is being thrown as java.lang.reflect.UndeclaredThrowableException > at $Proxy0.addError(Unknown Source)
I have the application exception on the throws clause in both the remote interface and the remote class but it still does not seem to throws the defined application exception. Although this seems to work when accessed from the EJB layer itself. Any insights into this will be appreciated.