Page 1 of 1

About Question enthuware.oce-jpad.v6.2.390 :

Posted: Sun May 03, 2015 8:44 am
by disznoperzselo
If a local client has a transaction context and calls a bean that throws a System Exception from a method with Required transaction attribute then the transaction will be rolled back and a javax.ejb.TransactionRolledbackLocalException will be thrown to the client. The javax.ejb.EJBTransactionRequiredException is thrown to a remote client, so the given solution for this question seems to be wrong.

Re: About Question enthuware.oce-jpad.v6.2.390 :

Posted: Sun May 03, 2015 10:04 am
by admin
As per Section 13.6.2.5 of EJB 3.1 specification, javax.ejb.TransactionRolledbackLocalException is thrown to a local client but only if EJB 2.1 client view is used. Otherwise, javax.ejb.EJBTransactionRequiredException is thrown to local as well as remote clients.

For the purpose of the exam, unless specified explicitly, you have to assume that it is talking about the EJB 3.0 view and not the 2.1 view. So it doesn't apply here.

HTH,
Paul.

Re: About Question enthuware.oce-jpad.v6.2.390 :

Posted: Sun May 03, 2015 12:30 pm
by disznoperzselo
Thanks for clarification, you are right. I realized later that the explanation for enthuware.oce-jpad.v6.2.403 provides the same information. It is worth to check as well.