A CMT session bean named MrBean is annotated as follows :
21. @Stateless(name=”MrBean”)
22. @TransactionAttribute0″ransactionAttributeType.NOT_SUPPORTED)
23. public class MrBean {
24. public void storeStuffQ {}
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 transactionattributeREQUIRED.
B.
All methodshavetransaction attributeMANDATORY.
C.
All methodshavetransaction attribute NONSUPPORTED.
D.
Methods with name store Stuff have transaction attributeMANDATORYand all other methods
have transaction attribute REQUIRED.
E.
MethodswithnamestoreStuffhavetransaction attribute MANDATORY andall othermethods have
transaction attribute NONSUPPORTED.
F.
Methodswithname store Stuff haveatransaction attribute REQUIRED andallother methods have
transaction attribute NOT SUPPORTED.
Explanation: