which set of transaction attributes will support this scope?

Given the method invocation sequence:
Method 1 calls Method 2 Method 2 calls Method 3 Method 1 calls Method 4
And the transaction scope:
Method 1Transaction A Method 2Transaction A Method 3Transaction A Method 4Transaction B
Assuming Method 1 is invoked by a client without an existing transaction context, which set of
transaction attributes will support this scope?

Given the method invocation sequence:
Method 1 calls Method 2 Method 2 calls Method 3 Method 1 calls Method 4
And the transaction scope:
Method 1Transaction A Method 2Transaction A Method 3Transaction A Method 4Transaction B
Assuming Method 1 is invoked by a client without an existing transaction context, which set of
transaction attributes will support this scope?

A.
Method1NEVER Method
2SUPPORTS Method
3REQUIRED Method
4REQUIRES_NEW

B.
Method1REQUIRES_NEW Method
2MANDATORYMethod
3SUPPORTS Method
4REQUIRES_NEW

C.
Method1REQUIRES_NEW Method
2MANDATORY Method
3SUPPORTS Method

4SUPPORTS
Method 1MANDATORY Method
2REQUIREDMethod
3SUPPORTSMethod
4REQUIRES NEW



Leave a Reply 0

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