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

Moderator: admin

Post Reply
disznoperzselo
Posts: 28
Joined: Fri Jan 02, 2015 12:13 pm
Contact:

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

Post 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.

admin
Site Admin
Posts: 10386
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

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

Post 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.

disznoperzselo
Posts: 28
Joined: Fri Jan 02, 2015 12:13 pm
Contact:

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

Post 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.

Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests