nerdexam
Oracle

1Z0-860 · Question #6

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…

The correct answer is E. Methods with name store Stuff have transaction attribute MANDATORY and all other methods have. See the full explanation below for the reasoning.

Question

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?

Options

  • AAll methods have transaction attribute REQUIRED.
  • BAll methods have transaction attribute MANDATORY.
  • CAll methods have transaction attribute NONSUPPORTED.
  • DMethods with name store Stuff have transaction attribute MANDATORY and all other methods have
  • EMethods with name store Stuff have transaction attribute MANDATORY and all other methods have
  • FMethods with name store Stuff have a transaction attribute REQUIRED and all other methods have

How the community answered

(21 responses)
  • A
    5% (1)
  • D
    10% (2)
  • E
    86% (18)

Community Discussion

No community discussion yet for this question.

Full 1Z0-860 Practice