users@glassfish.java.net

Re: lookup local slsb from a pojo

From: Tim Kiener <tim.kiener_at_gmx.de>
Date: Tue, 19 May 2009 19:31:09 +0200

> So what is invoking your POJO?

its an external jcr/jackrabbit-event, not a container-managed POJO,
but a spring-managed one, though.
everything is deployed within a single EAR without any webmodules.

maybe glassfish v2.1 simply does not support a local-lookup within a
non-managed POJO?!





Am 19.05.2009 um 17:50 schrieb glassfish_at_javadesktop.org:

> 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
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net