Oracle
1Z0-860 · Question #269
A developer wants to achieve the following two behaviors for an EJB 3.0 session bean: (1) If the client calls a business method with a transaction context, the container will invoke the enterprise…
The correct answer is C. MANDATORY. See the full explanation below for the reasoning.
Question
A developer wants to achieve the following two behaviors for an EJB 3.0 session bean: (1) If the client calls a business method with a transaction context, the container will invoke the enterprise bean's method in the client's transaction context. (2) If the client calls a business method without a transaction context, the container will throw the javax. ejb. EJBTransactionRequiredException. Which transaction attribute should be used?
Options
- AREQUIRED
- BSUPPORTS
- CMANDATORY
- DREQUIRES_NEW
- ENOTSUPPORTED
How the community answered
(36 responses)- A6% (2)
- B3% (1)
- C75% (27)
- D14% (5)
- E3% (1)
Community Discussion
No community discussion yet for this question.