aspose file tools*
The moose likes EJB and other Java EE Technologies and the fly likes problem with ApplicationException handling in EJB3 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "problem with ApplicationException handling in EJB3" Watch "problem with ApplicationException handling in EJB3" New topic
Author

problem with ApplicationException handling in EJB3

Abhishekh Padmanabhan
Greenhorn

Joined: Sep 26, 2006
Posts: 5
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: problem with ApplicationException handling in EJB3