Win a copy of Kotlin in Action this week in the Kotlin 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.

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