-
Hi,
I am a newbie in J2EE. I'm trying to throw an application exception to a remote client. How come it's always returning a RemoteException? I really appreciate your help. Thanks in advance.
Regards,
Andrew
-
Hi Andrew,
The RemoteException is checked excption. So always it will throw the RemtoeException to you only.
Thank you.
-
Ensure Your ApplicationException extends Exception class and not class or sub classof(RuntimeException / Remote Exception). Declare the application exceptions both in Remote and bean methods. After which I dont see you will be receiving RemoteExceptions.
If you are currently receiving RemoteException only then I see your Application Exception Extends RuntimeException in its Hierarchy.
-
Hi,
Thanks a lot. I actually extends RemoteException and EJBException. It's now working fine. Thanks again.
Regards,
Andrew