users@glassfish.java.net

Re: How to access a Local EJB3 from a POJO?

From: <glassfish_at_javadesktop.org>
Date: Wed, 24 Oct 2007 07:05:38 PDT

In what context does the POJO run? Where did you define the ejb local reference? In an .xml descriptor (web.xml or ejb-jar.xml) OR by way of an @EJB annotation? Did you make sure the ejb-ref-name or @EJB name() attribute exactly matches the portion of the lookup string after "java:comp/env/" ? That would mean "ejb/EnderecoSessionFacadeLocal". There is no automatic prepending of the string "ejb/" to the environment dependency names.
[Message sent by forum member 'ksak' (ksak)]

http://forums.java.net/jive/thread.jspa?messageID=241886