Oracle
1Z0-860 · Question #103
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
(30 responses)- A13% (4)
- B3% (1)
- C80% (24)
- D3% (1)
Community Discussion
No community discussion yet for this question.