READ Free Dumps For Oracle- 1z0-898
Question ID 4564 | If an application uses an extended persistence context, which of the following is true? |
Option A | A. The persistence context exists until all transactions invoked by the EntityManager complete. |
Option B | B. The persistence context exists until all transactions invoked by the EntityManagar complete and the EntityManager.clear () method is invoked. |
Option C | C. The persistence context exists until the EntityManager instance is closed. |
Option D | D. The persistence context exists until the EntityManagerFactory instance is closed. |
Correct Answer | C |
Question ID 4565 | An application uses an application-managed entity manager. Which of the following is NOT true? |
Option A | A. The application may specify whether the scope of the persistence context is extended. |
Option B | B. The application must use EntityManagerFactory instances to create entity managers. |
Option C | C. Entity manager instances must be explicitly closed. |
Option D | D. The application may need to call EntityManager. joinTransactionif a JTA aware entity manager is used. |
Correct Answer | D |