posted 21 years ago
As of EJB2.0, any System Exception/Unchecked exception caught by the EJB Container, while executing the method of the bean, is thrown as a RemoteException if the client is a remote client and EJBException if the client is a local client.
As Viswanath said, the bean provider while coding the bean class, is responsible to catch the checked exception if any, wrap it in an EJBException and throw it as an EJBException. The container will catch this EJBException and rethrow it either as RemoteException or EJBException
based on the client, if it is remote or local.
RemoteException is a checked exception while EJBException is an unchecked exception.
For more information about EJB Exception Handling, U can refer Ed Roman's book, Appendix E - Exception Reference, p:648