Oracle
1Z0-860 · Question #121
Using bean-managed transaction demarcation, under which two circumstances must the container roll back a transaction? (Choose two.)
The correct answer is D. A stateless session bean begins a transaction in a business method but does NOT complete it before E. A message-driven bean begins a transaction in a message listener method but does NOT complete it. See the full explanation below for the reasoning.
Question
Using bean-managed transaction demarcation, under which two circumstances must the container roll back a transaction? (Choose two.)
Options
- AA stateful session bean invokes User Transaction.get Rollback Only.
- BA stateful session bean throws an uncaught application exception from a business method.
- CA stateful session bean begins a transaction in a business method but does NOT complete it before
- DA stateless session bean begins a transaction in a business method but does NOT complete it before
- EA message-driven bean begins a transaction in a message listener method but does NOT complete it
How the community answered
(38 responses)- A8% (3)
- B3% (1)
- C5% (2)
- D84% (32)
Community Discussion
No community discussion yet for this question.