Given the following stateful bean:
10. @Stateful
11. @TransactionAttribute(TransactionAttributeType.SUPPORTS)
12. public class VideoBean implements video {
13. / / insert code here
14. public void method () {}
15. }
Assuming no other transaction-related metadata, which code can be added at line 13 to guarantee
that business method methodA will execute only if invoked with an active transaction?
A.
@TransactionAttribute ()
B.
@transactionmanagement(TransactionAttributeType.CONTAINER)
C.
@TransactionAttribute(transactionAttributeType.MANDATORY)
D.
@transactionAttribute(TransactionattributeType.RECQUIRES_NEW)