Given the following methods and their transaction attributes specified in the deployment descriptor:
methodA : NotSupported
methodB : Never
methodC : Supports
methodD : Required
Which of the transaction scopes shown in figure 1 is valid? Assume that the client calls methodA with a transaction scope of TxCL.
My question:
You said that the correct answer is 3, but in my opinion the correct one is 4, If a client calls method A with a TxCL transaction and the C methods must have a Support to this transaction whay the correct answer is 3 whose method C executes without any transaction scope??
Thanks,
enthuware.oce-ejbd.v6.2.585 Question 16, Test 1 - EJB
Moderator: admin
enthuware.oce-ejbd.v6.2.585 Question 16, Test 1 - EJB
Last edited by admin on Sun May 20, 2012 5:13 pm, edited 1 time in total.
Reason: Updated the subject to include question id
Reason: Updated the subject to include question id
-
- Site Admin
- Posts: 10068
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: Question 16, Test 1 - EJB
Supports means if there is a transaction context for the caller then it will be used and if there is no transaction context with the caller then this method will be executed without any transaction context.
Since methodA causes the TxCL to be suspended, and methodB has no transaction, so methodC can execute with no transaction.
Option 4 is wrong because TxCL is suspended at methodA, therefore it will not reach methodC.
HTH,
Paul
Since methodA causes the TxCL to be suspended, and methodB has no transaction, so methodC can execute with no transaction.
Option 4 is wrong because TxCL is suspended at methodA, therefore it will not reach methodC.
HTH,
Paul
If you like our products and services, please help us by posting your review here.
-
- Posts: 1
- Joined: Fri May 18, 2012 7:18 am
- Contact:
Re: Question 16, Test 1 - EJB
What is figure 1 here??Dorel wrote:Given the following methods and their transaction attributes specified in the deployment descriptor:
methodA : NotSupported
methodB : Never
methodC : Supports
methodD : Required
Which of the transaction scopes shown in figure 1 is valid? Assume that the client calls methodA with a transaction scope of TxCL.
____________________________
click here
Last edited by SpiralNero on Fri May 25, 2012 9:14 am, edited 1 time in total.
-
- Site Admin
- Posts: 10068
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: Question 16, Test 1 - EJB
The image is shown right below the question (see attached.)
HTH,
Paull
HTH,
Paull
- Attachments
-
- q2-585.gif (23.21 KiB) Viewed 5427 times
If you like our products and services, please help us by posting your review here.
Who is online
Users browsing this forum: No registered users and 79 guests