Oracle
1Z0-860 · Question #27
1Z0-860 Question #27: Real Exam Question with Answer & Explanation
Sign in or unlock 1Z0-860 to reveal the answer and full explanation for question #27. The question stem and answer options stay visible for context.
Question
Which is a valid way of injecting a container-managed transaction-scoped persistence context into an EJB 3.0 session bean assuming the application contains only one persistence unit?
Options
- A@PersistenceUnit public EntityManager em;
- B@PersistenceContext private EntityManager em;
- C@TransactionManagement(TransactionManagementType.
- D@Resource(name="persistence/em", authenticationType=AuthenticationType.
Unlock 1Z0-860 to see the answer
You've previewed enough free 1Z0-860 questions. Unlock 1Z0-860 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.