I tried to search on the internet but couldn't find a definite answer for this:
Is using
@Resource(name="abc", lookup="myJndiName")
private Queue myQueue;
in a EJB 3.1 session bean equivalent to
@Resource(name="abc")
private Queue myQueue;
without the lookup but with the entry in ibm-ejb-jar-bnd.xml:
<session name="StatelessBean">
<resource-env-ref name="abc" binding-name="myJndiName"/>
</session>
?
I.e. if I'm using the lookup attribute, then I don't have to specify the resource-env-ref anymore?
Aucun commentaire:
Enregistrer un commentaire