Annotations for Environment Entries
Injection of EJB References
In the example above, where is the explicit specification of the jndi name and the environment entry type? If not shown, how would it look? Or have I taken this out of context?
When the annotation is applied to the bean class , the jndi name and the environment entry type must be explicitly specified.
Injection of EJB References
The following example illustrates use of all portable elements of the EJB annotation. In this case, the
enterprise bean reference would have the name java:comp/env/ejb/shopping-cart in the
referencing bean’s naming context. This reference is linked to a bean named cart1.
In the example above, where is the explicit specification of the jndi name and the environment entry type? If not shown, how would it look? Or have I taken this out of context?