Oracle
1Z0-860 · Question #229
A developer writes a stateless session bean with one local business interface and with container- managed transactions. All business methods have transaction attribute REQUIRED. The bean has an…
The correct answer is B. sessionCtx.setRollbackOnly D. sessionCtx. getBusinessObject. See the full explanation below for the reasoning.
Question
A developer writes a stateless session bean with one local business interface and with container- managed transactions. All business methods have transaction attribute REQUIRED. The bean has an injected field sessionCtx of the type SessionContext. Which two operations are allowed in a business method of the bean? (Choose two.)
Options
- AsessionCtx. getEJBObject
- BsessionCtx.setRollbackOnly
- CsessionCtx. getMessageContext
- DsessionCtx. getBusinessObject
- EsessionCtx. getEJBLocalObject
How the community answered
(37 responses)- A16% (6)
- B70% (26)
- C5% (2)
- E8% (3)
Community Discussion
No community discussion yet for this question.