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 Ml invokes Method M2
Method M2 invokes Method M3
Method M1 invokes Method M4
If Method Ml is invoked by a method that does NOT have a transaction context, which describes a
possible scenario?
A.
Method M1: no transaction
Method M2: new transaction
Method M3: no transaction
Method M4: new transaction
B.
Method M1: no transaction
Method M2: Container throws EJBTransactionRequiredException
C.
Method M1: new transaction
Method M2: runs in same transaction as M1
Method M3: Container throws TransactionNotSupportedException
D.
Method M1: no transaction
Method M2: new transaction
Method M3: Container throws TransactionNotSupportedException