About Question enthuware.oce-jpad.v6.2.390 :
Moderator: admin
-
- Posts: 28
- Joined: Fri Jan 02, 2015 12:13 pm
- Contact:
About Question enthuware.oce-jpad.v6.2.390 :
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.
-
- Site Admin
- Posts: 10386
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.oce-jpad.v6.2.390 :
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.
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.
-
- Posts: 28
- Joined: Fri Jan 02, 2015 12:13 pm
- Contact:
Re: About Question enthuware.oce-jpad.v6.2.390 :
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.
Who is online
Users browsing this forum: No registered users and 5 guests