Oracle
1Z0-895 · Question #50
1Z0-895 Question #50: Real Exam Question with Answer & Explanation
Sign in or unlock 1Z0-895 to reveal the answer and full explanation for question #50. The question stem and answer options stay visible for context.
Question
You are writing an EE component that functions as a message producer. The message producer sends message to a JMS queue. The component environment defines a resource-ref of type javax.jms.ConnectionFactory with the same jms/ConnectionFactory. Which will correctly obtain a connection factory for a queue?
Options
- AContext context = new initialContext();
- BInitialContext Context = new Context () ;
- C@Resource ("ConnectionFactory")
- D@Resource (loopkup = "jms/QueueConnectionFactory")
Unlock 1Z0-895 to see the answer
You've previewed enough free 1Z0-895 questions. Unlock 1Z0-895 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.