| Author |
Unable to throw back Custom Exception from EJB (3.0 version) to Web layer
|
Noble Bhaskar Aswanapally
Greenhorn
Joined: Mar 05, 2007
Posts: 13
|
|
HI
I am throwing Custom Exceptions from EJB class as below
I am throwing
my class definitions for custom exceptions are as below.
in web layer I am getting it as an instance of javax.ejb.EJBException
I want to it as an instance of XmlParsingException
any suggestions please....
|
 |
Meiyappan Kannappa
Greenhorn
Joined: Sep 15, 2008
Posts: 10
|
|
Hi,
You need to extend any checked exception from custom exception class. Only then the application exception will be propageted to web layer. Since you are extending Runtime exception, all runtime exception will be wrapped by EJBException and propagated.
Thank you
|
Warm Regards
|
 |
 |
|
|
subject: Unable to throw back Custom Exception from EJB (3.0 version) to Web layer
|
|
|