which describes a possible scenario?

Given a set of CMT bean methods with the following transaction attributes:
Method M1=SUPPORTS
Method M2=REQUIRED
Method M3=NOT_SUPPORTED
Method M4=REQUIRES_NEW
And the following method invocation sequence:
Method M1 invokes Method M2
Method M2 invokes Method M3
Method M1 invokes Method M4
If Method M1 is invoked by a method that does NOT have a transaction context, which describes a
possible scenario?

Given a set of CMT bean methods with the following transaction attributes:
Method M1=SUPPORTS
Method M2=REQUIRED
Method M3=NOT_SUPPORTED
Method M4=REQUIRES_NEW
And the following method invocation sequence:
Method M1 invokes Method M2
Method M2 invokes Method M3
Method M1 invokes Method M4
If Method M1 is invoked by a method that does NOT have a transaction context, which describes a
possible scenario?

A.
Method M1notransaction
MethodM2new transaction
Method M3no transaction
MethodM4newtransaction

B.
Method M1notransaction
Method M2Container throws EJBTransactionRequiredException

C.
MethodM1new transaction
Method M2runs in same transaction as M1
Method M3Container throws TransactionNotSupportedException

D.
Method M1no transaction
Method M2new transaction

Method M3Container throws TransactionNotSupportedException



Leave a Reply 0

Your email address will not be published. Required fields are marked *