If I use an IOException or IOException inheritance like RemoteException
- no errors
BUT .....
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
I have a class : MyApplicationExceptionBase extends Exception
that I use in my code ,
In the EJB3 statless remote interface I have declered
| public MyData getData(int key, String user) throws
MyApplicationExceptionBase ...
|
|
and in the Statless implementaion class I have declered
|
|
| @WebMethod
| public MyData getData(int key, String user) throws
MyApplicationExceptionBase ...
|
I should be able to do that .
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3947930#3947930
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3947930
-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user