Go back to 1Z0-895 - Java Platform, Enterprise Edition 6 Enterprise JavaBeans Developer Certified Expert Exam

Question :-

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?
@TransactionAttribute ()
@transactionmanagement(TransactionAttributeType.CONTAINER)
@TransactionAttribute(transactionAttributeType.MANDATORY)
@transactionAttribute(TransactionattributeType.RECQUIRES_NEW)

Want to practice for 1Z0-895 - Java Platform, Enterprise Edition 6 Enterprise JavaBeans Developer Certified Expert Exam ? Click here.