what are the transaction attributes of methodA, methods, and methodC respectively?

Given the following stateless session bean implementation classes:
10. @TransactionAttributefJransactionAttributeType. MANDATORY)
11. public class MySuperj
12. public void methodAfJO
13. public void methodBOJ}
14.}
10.©Stateless
11. public class MyBean extends MySuper implements Mylntj
12. public void methodAOJ}
13.
14. @TransactionAttributeO”ransactionAttributeType.REQUIRES_NEW)
15. public void methodC0 {}

16.}
10. @RemoteO
11. public interface Mylntj
12. public void methodAO;
13. public void methodB0;
14. public void methodC0;
15.}
Assuming no other transaction-related metadata, what are the transaction attributes of methodA,
methods, and methodC respectively?

Given the following stateless session bean implementation classes:
10. @TransactionAttributefJransactionAttributeType. MANDATORY)
11. public class MySuperj
12. public void methodAfJO
13. public void methodBOJ}
14.}
10.©Stateless
11. public class MyBean extends MySuper implements Mylntj
12. public void methodAOJ}
13.
14. @TransactionAttributeO”ransactionAttributeType.REQUIRES_NEW)
15. public void methodC0 {}

16.}
10. @RemoteO
11. public interface Mylntj
12. public void methodAO;
13. public void methodB0;
14. public void methodC0;
15.}
Assuming no other transaction-related metadata, what are the transaction attributes of methodA,
methods, and methodC respectively?

A.
MANDATORY, MANDATORY, and MANDATORY

B.
REQUIRED, MANDATORY, and REQUIRES_NEW

C.
MANDATORY, MANDATORY, and REQUIRES_NEW

D.
REQUIRED, REQUIRES NEW, and REQUIRES NEW



Leave a Reply 0

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