exam questions

Exam 1z0-898 All Questions

View all questions & answers for the 1z0-898 exam

Exam 1z0-898 topic 1 question 12 discussion

Actual exam question from Oracle's 1z0-898
Question #: 12
Topic #: 1
[All 1z0-898 Questions]

An application uses an application-managed entity manager. Which of the following is NOT true?

  • A. The application may specify whether the scope of the persistence context is extended.
  • B. The application must use EntityManagerFactory instances to create entity managers.
  • C. Entity manager instances must be explicitly closed.
  • D. The application may need to call EntityManager. joinTransaction if a JTA aware entity manager is used.
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️
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.
Reference: Identify correct and incorrect statements or examples about application-managed persistence contexts.

http://java.boot.by/scbcd5-guide/ch07s03.html

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Currently there are no comments in this discussion, be the first to comment!
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...