Which statement is correct about the methods in MrBean?

A CMT session bean named MrBean contains a method storeStuff which is annotated as follows:

22. @TransactionAttribute(TransactionAttributeType.REQUIRES_NEW)
23. public void storeStuff() {
All other methods of this bean have no transaction annotations.
Given the following part of an ejB. jar.xml:
23. <container-transaction>
24. <method>
25. <ejB. name>MrBean</ejB. name>
26. <methoD. name>*</methoD. name>
27. </method>
28. <transaction-attribute>NotSupported</transaction-attribute>
29. </container-transaction>
Which statement is correct about the methods in MrBean?

A CMT session bean named MrBean contains a method storeStuff which is annotated as follows:

22. @TransactionAttribute(TransactionAttributeType.REQUIRES_NEW)
23. public void storeStuff() {
All other methods of this bean have no transaction annotations.
Given the following part of an ejB. jar.xml:
23. <container-transaction>
24. <method>
25. <ejB. name>MrBean</ejB. name>
26. <methoD. name>*</methoD. name>
27. </method>
28. <transaction-attribute>NotSupported</transaction-attribute>
29. </container-transaction>
Which statement is correct about the methods in MrBean?

A.
All methods of MrBean have transaction attribute REQUIRED.

B.
All methods of MrBean have transaction attribute NOT_SUPPORTED.

C.
Method storeStuff has transaction attribute REQUIRES_NEW and the other methods have
transaction attribute REQUIRED.

D.
Method storeStuff has transaction attribute NOT_SUPPORTED and the other methods have
transaction attribute REQUIRED.

E.
Method storeStuff has transaction attribute REQUIRES NEW and the other methods have
transaction attribute NOT SUPPORTTED.



Leave a Reply 0

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