Page 1 of 1

About Question com.enthuware.ets.scbcd.v5.2.146 :

Posted: Sun Oct 30, 2011 6:23 am
by ETS User
I would like to ask about one explanation to this question :

A client of a session bean calls a method on the bean and the method throws a system exception that is not caught.
Which of the following statements are correct?

- the same exception is thrown to the client

Explanation for this bad answer is :
the client will get EJBTransactionRollbackException or EJBException.

its true when we talk about local ejb invocation by the client.

when it comes to remote invocation, the client will get EJBTransactionRollbackException or RemoteException depends on client transaction's context or not.

Am I right ?


Regards
Radoslaw

Re: About Question com.enthuware.ets.scbcd.v5.2.146 :

Posted: Sun Oct 30, 2011 7:07 am
by admin
Yes, if the client it a remote client, it will get java.rmi.RemoteException. As per Section 14.3.1 of EJB 3.0 Core Specification.
This has now been added to the explanation.

thank you!