Page 1 of 1

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

Posted: Sat May 12, 2012 9:07 am
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,

Re: Question 16, Test 1 - EJB

Posted: Sun May 13, 2012 5:44 pm
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

Re: Question 16, Test 1 - EJB

Posted: Tue May 15, 2012 5:39 pm
by Dorel
thanks a lot, you clear my mind

Re: Question 16, Test 1 - EJB

Posted: Fri May 18, 2012 7:21 am
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

Re: Question 16, Test 1 - EJB

Posted: Sun May 20, 2012 5:12 pm
by admin
The image is shown right below the question (see attached.)

HTH,
Paull