enthuware.oce-ejbd.v6.2.585 Question 16, Test 1 - EJB

Moderator: admin

Post Reply
Dorel

enthuware.oce-ejbd.v6.2.585 Question 16, Test 1 - EJB

Post by Dorel »

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,
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

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

Re: Question 16, Test 1 - EJB

Post by admin »

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
If you like our products and services, please help us by posting your review here.

Dorel

Re: Question 16, Test 1 - EJB

Post by Dorel »

thanks a lot, you clear my mind

SpiralNero
Posts: 1
Joined: Fri May 18, 2012 7:18 am
Contact:

Re: Question 16, Test 1 - EJB

Post by SpiralNero »

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.
What is figure 1 here??
____________________________
click here
Last edited by SpiralNero on Fri May 25, 2012 9:14 am, edited 1 time in total.

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

Re: Question 16, Test 1 - EJB

Post by admin »

The image is shown right below the question (see attached.)

HTH,
Paull
Attachments
q2-585.gif
q2-585.gif (23.21 KiB) Viewed 5427 times
If you like our products and services, please help us by posting your review here.

Post Reply

Who is online

Users browsing this forum: No registered users and 79 guests