nerdexam
Oracle

1Z0-860 · Question #250

1Z0-860 Question #250: Real Exam Question with Answer & Explanation

Sign in or unlock 1Z0-860 to reveal the answer and full explanation for question #250. The question stem and answer options stay visible for context.

Question

A developer writes an enterprise application and packages it into an .ear file. The application contains two persistence units defined at the .ear level with persistence unit names FooPU and BarPU. The application also contains an ejb-jar with one stateless session bean. Which code, when added to the stateless session bean class, injects an EntityManagerFactory at runtime?

Options

  • APersistenceUnit
  • BPersistenceContext
  • CPersistenceUnit(unitName="BarPU")
  • DResource(name="BarPU", type=EntityManagerFactory.class) private EntityManagerFactory emf;

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.

Full 1Z0-860 Practice