Take a look at this FAQ entry :
https://glassfish.dev.java.net/javaee5/ejb/EJB_FAQ.html#POJOLocalEJB
Some other implementations support direct global lookups of Local EJB references.
However, that's not defined by the spec and is not supported in Glassfish. So,
for this case you'll need to either define an ejb-local-ref or use @EJB and then
look up the corresponding dependency via JNDI. In that case, the string relative
to "java:comp/env/" is the ejb-ref-name element or the @EJB name() attribute,
not the name() attribute of the target bean's @Stateless annotation.
[Message sent by forum member 'ksak' (ksak)]
http://forums.java.net/jive/thread.jspa?messageID=290686