A CMT session bean named MrBean is annotated as follows :
21. @Stateless(name=”MrBean”)
22. @TransactionAttribute(TransactionAttributeType.NOT_SUPPORTED)
23. public class MrBean {
24. public void storeStuff() { }
25.
There are no transaction annotations at the method level.
Given the following snippet of an ejB. jar.xml:
23. <container-transaction>
24. <method>
25. <ejB. name>MrBean</ejB. name>
26. <methoD. name>storeStuff</methoD. name>
27. </method>
28. <transaction-attribute>Mandatory</transaction-attribute>
29. </container-transaction>
Which statement is correct about the business methods in MrBean?
A.
All methods have transaction attribute REQUIRED.
B.
All methods have transaction attribute MANDATORY.
C.
All methods have transaction attribute NOT_SUPPORTED.
D.
Methods with name storeStuff have transaction attribute MANDATORY and all other methods
have transaction attribute REQUIRED.
E.
Methods with name storeStuff have transaction attribute MANDATORY and all other methods
have transaction attribute NOT_SUPPORTED.
F.
Methods with name storeStuff have a transaction attribute REQUIRED and all other methods
have transaction attribute NOT SUPPORTED.