nerdexam
Oracle

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…

EntityManager Operations

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)
  • A
    4% (1)
  • B
    8% (2)
  • C
    17% (4)
  • D
    71% (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

#application-managed EntityManager#joinTransaction#JTA awareness#EntityManagerFactory

Community Discussion

No community discussion yet for this question.

Full 1Z0-898 Practice