1Z0-898 · Question #42
An application uses an application-managed entity manager. Which of the following is NOT true?
The correct answer is D. The application may need to call EntityManager. joinTransaction If a JTA aware entity manager is. When a JTA application-managed entity manager is used, if the entity manager is created outside the scope of the current JTA transaction, it is the responsibility of the application to associate the entity manager with the transaction (if desired) by calling…
Question
An application uses an application-managed entity manager. Which of the following is NOT true?
Options
- AThe application may specify whether the scope of the persistence context is extended.
- BThe application must use EntityManagerFactory instances to create entity managers.
- CEntity manager instances must be explicitly closed.
- DThe application may need to call EntityManager. joinTransaction If a JTA aware entity manager is
How the community answered
(24 responses)- A4% (1)
- B8% (2)
- C17% (4)
- D71% (17)
Explanation
When a JTA application-managed entity manager is used, if the entity manager is created outside the scope of the current JTA transaction, it is the responsibility of the application to associate the entity manager with the transaction (if desired) by calling EntityManager.joinTransaction.
Topics
Community Discussion
No community discussion yet for this question.