New Year Sale Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: simple70

Oracle Java EE 7 Application Developer 1z0-900 Question # 25 Topic 3 Discussion

Oracle Java EE 7 Application Developer 1z0-900 Question # 25 Topic 3 Discussion

1z0-900 Exam Topic 3 Question 25 Discussion:
Question #: 25
Topic #: 3

Give the code fragment:

1z0-900 Question 25

And the code fragment:

1z0-900 Question 25

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


Get Premium 1z0-900 Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.