• Post Reply Bookmark Topic Watch Topic
  • New Topic

Why RemoteExceptions to the remote client rather than EJBExceptions?

 
Thivanka Somasiri
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

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.

Thanks.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!