Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Why RemoteExceptions to the remote client rather than EJBExceptions?  RSS feed

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

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.

It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!