Oracle
1Z0-860 · Question #188
A developer has obtained a container-managed entity manager with transaction scoped persistence context. Assume there is no persistence context associated with the entity manager. When does a new…
The correct answer is C. When the entity manager is invoked in the scope of an active JTA transaction. See the full explanation below for the reasoning.
Question
A developer has obtained a container-managed entity manager with transaction scoped persistence context. Assume there is no persistence context associated with the entity manager. When does a new persistence context begins?
Options
- AWhen a JTA transaction begins
- Bwhen the entity manager is created
- CWhen the entity manager is invoked in the scope of an active JTA transaction
- Dwhen the entity manager is created in the scope of an active resource local transaction
How the community answered
(25 responses)- A12% (3)
- B4% (1)
- C80% (20)
- D4% (1)
Community Discussion
No community discussion yet for this question.