EJB Exception


General J2EE: EJB Exception

  1. EJB Exception (3 messages)

    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

    Threaded Messages (3)

  2. Re: EJB Exception[ Go to top ]

    Hi Andrew, The RemoteException is checked excption. So always it will throw the RemtoeException to you only. Thank you.
  3. Re: EJB Exception[ Go to top ]

    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.
  4. Re: EJB Exception[ Go to top ]

    Hi, Thanks a lot. I actually extends RemoteException and EJBException. It's now working fine. Thanks again. Regards, Andrew