hown above?

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 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:



Leave a Reply 0

Your email address will not be published. Required fields are marked *