Which transaction attributes do you ensure this?

Give the code fragment:

And the code fragment:

The sendConfirmation() and reserve() methods should be executed in the same transactional context.
Which transaction attributes do you ensure this?
A. Add annotations:
@TransactionAttribute (TransactionAttributeType.REQUIRES_NEW) at line 2,
@Transactional at line 9 and @TransactionAttribute ((TransactionAttributeType.MANDATORY) at line 12
B. No additional annotations are required.
C. Add annotations:
@TransactionAttribute (TransactionAttributeType.REQUIRED) at line 2,
@Transactional at line 9 and @TransactionAttribute ((TransactionAttributeType.REQUIRES_NEW) at line 12
D. Add annotations:
@TransactionAttribute (TransactionAttributeType.MANDATORY) at line 2,
@Transactional at line 9 and @TransactionAttribute ((TransactionAttributeType.REQUIRES_NEW) at line 12

Download Printable PDF. VALID exam to help you PASS.

Leave a Reply

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


The reCAPTCHA verification period has expired. Please reload the page.