Why RemoteExceptions to the remote client rather than EJBExceptions?
posted 4 years ago
In EJB 2.0 when a RuntimeException is occurred an EJBException (unchecked) is thrown to the local client and a RemoteException is thrown to the remote client. But both of these Exceptions are thrown when a RuntimeException occurs. The container rethrows the RunrimeException as a RemoteException (which is checked) only for the remote client. Is there a specific reason to this difference? It could have designed such that same EJBException is submitted to the client by the container. Can anyone explain this.