I have a class : MyApplicationExceptionBase extends Exception
that I use in my code ,
In the EJB3 stateless remote interface I have declared
public MyData getData(int key, String user) throws MyApplicationExceptionBase ...
And in the Stateless implementation class I have declared
@WebMethod
public MyData getData(int key, String user) throws MyApplicationExceptionBase ...
This the Jboss4.0.4.GA have problems to deploy
Only If I use an IOException or IOException inheritance like RemoteException I'm able to deploy with no errors
Prier to the EJB3 and POJO the service endpoint interface must conform to a few rules:
* It extends the java.rmi.Remote interface.
* It must not have constant declarations, such as public final static.
* The methods must throw the java.rmi.RemoteException or one of its subclasses. (The methods may also throw service-specific exceptions.)
* Method parameters and return types must be supported JAX-RPC types (see Types Supported by JAX-RPC).
but with EJB3 and POJO the RemoteException is optional ,
And the methods may also throw service-specific exceptions
Is this a bug in BossWS-1.0.0.GA release ? or am I missing something?
Thanks