Oracle
1Z0-860 · Question #78
A developer writes a stateless session bean FooBean and uses its deployment descriptor to declare a local ejb dependency on a stateful session bean in the same ejb-jar. <ejb-local-ref>…
Sign in or unlock 1Z0-860 to reveal the answer and full explanation for question #78. The question stem and answer options stay visible for context.
Question
A developer writes a stateless session bean FooBean and uses its deployment descriptor to declare a local ejb dependency on a stateful session bean in the same ejb-jar. <ejb-local-ref> <ejb-ref-name>barRef</ejb-ref-name> <local>acme.Bar</local> <ejb-link>BarBean</ejb-link> <injection-target> <injection-target-class>acme.FooBean</injection-target-class> <injection-target-name>bar</injection-target-name> </injection-target> </ej b-1 o c a I- ref> Which environment annotation, when declared within the FooBean bean class, is equivalent to the ejb-local-ref shown above?
Options
- A@EJB(beanName="BarBean")
- B@EJB(name="bar", beanName="BarBean")
- C@EJB(name="barRef,beanName-'BarBean")
- D@EJB(name="ejb/barRef, beanName-'BarBean")
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.