users@glassfish.java.net

Re: Again an _at_Local Interface

From: <glassfish_at_javadesktop.org>
Date: Wed, 14 May 2008 10:19:42 PDT

The LoginModule is not a managed component within the EJB JNDI space, so there's no way to get access to a local reference.

All of the FAQs and such are about setting up the local JNDI environment within a component. Any POJO that is called from within that component "inherits" the local JNDI environment of that component.

But since LoginModules are not managed components, per se, they do not have a local JNDI environment at all. That's why you are having all this trouble.

You will need to use a Remote reference instead.

Also note that your LoginModule is associated with the overall container, not a specific deployed application, and the local JNDI environments are tied to specifically deployed applications within the container.

Since Remote references are global to the container, you can access those, once your application is deployed within the container.
[Message sent by forum member 'whartung' (whartung)]

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