I am calling an EJB that throws a RuntimeException which gets re-thrown exactly as is to the client.
The code outputs 'Exception in thread "main" java.lang.RuntimeException at ses.MyOtherSes.methodThrowsSystemEx(MyOtherSes.java:23)'.
I'm using jboss 5.1GA.
I don't have an ejb-jar.xml file and i haven't specified RuntimeException to be an application exception. I do NOT understand why it throws it as is instead of throwing an EJBException.
Joined: Apr 14, 2009
that is rather strange, I tried that on Glassfish 3.1, a client with main method calling a remote SLSB that throws a RuntimeException in its business method. The client gets an EJBException ... caused by RemoteException
Joined: May 06, 2008
I have created a new class & new client and this time I get the expected EJBException.
No idea what happened before.