users@glassfish.java.net

Re: lookup local slsb from a pojo

From: <glassfish_at_javadesktop.org>
Date: Tue, 19 May 2009 08:50:02 PDT

The JNDI environment (available as "java:comp/env" is only available in a managed component such as a EJB, a JSF managed bean, etc. So it is not directly available to a POJO unless this POJO is being invoked farther up the call chain by one of these components. Even then, the POJO will only have the environment available that is available to the component father up the call chain.

So what is invoking your POJO?
[Message sent by forum member 'bbergquist' (bbergquist)]

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