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.
Which environment annotation, when declared within the FooBean bean class, is equivalent to the
ejB. local-ref shown above?
A.
@EJB(beanName=”BarBean”)
private acme.Bar barRef;
B.
@EJB(name=”bar”, beanName=”BarBean”)
private acme.Bar barRef;
C.
@EJB(name=”barRef”, beanName=”BarBean”)
private acme.Bar bar;
D.
@EJB(name=”ejb/barRef”, beanName=”BarBean”)
private acme.Bar bar;
Explanation: