which is true?

Given the following stateful session bean:
10.@Stateful
11. public class VideoBean implements Video {
12. public void methodA() {} 13.
14. @TransactionAttribute(TransactionAttributeType.SUPPORTS)
15. public void methodB() {} 16.
17. public void methodC() {}
18. @TransactionAttribute(TransactionAttributeType.REQUIRED)
19.
20. public void methodD() {}
21.}
Assuming no other transaction-related metadata, which is true?

Given the following stateful session bean:
10.@Stateful
11. public class VideoBean implements Video {
12. public void methodA() {} 13.
14. @TransactionAttribute(TransactionAttributeType.SUPPORTS)
15. public void methodB() {} 16.
17. public void methodC() {}
18. @TransactionAttribute(TransactionAttributeType.REQUIRED)
19.
20. public void methodD() {}
21.}
Assuming no other transaction-related metadata, which is true?

A.
methodB and methodC have transaction attribute SUPPORTS, while methodD has transaction

attribute REQUIRED.

B.
methodA and methodC have transaction attribute REQUIRES_NEW, while methodB has
transaction attribute SUPPORTS.

C.
methodC, methodD, and methodA have transaction attribute REQUIRED, and method B has
transaction attribute SUPPORTS

D.
methodB has transaction attribute SUPPORTS, methodD has transaction attribute REQUIRED,
and methodA and methodC have transaction attribute REQUIRES NEW.



Leave a Reply 0

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