The reason behind this is that it makes your bean code more open: if you would throw a RemoteException you can't expose the method in a local home/component interface.
If instead you throw a EJBException you can, if the interface is remote the container will wrap your EJBException in a RemoteException.
Hi Paulus,
When we say home methods, these methods are defined in the interface extending from EJBHome or EJBLocalHome.
How can we have an option of exposing the home methods in local home or remote home?
Pls explain.
Thanks
Shobha
SCJP 1.2, SCWCD