dev@glassfish.java.net

Re: GlassFish JNDI

From: Amy Roh <Amelia.Roh_at_Sun.COM>
Date: Fri, 19 Jan 2007 10:51:40 -0800

Hi Wouter,

Wouter van Reeven wrote:
> Hi Amy,
>
>
> Is there any reason why you are using Glassfish JNDI rather than Tomcat JNDI?
> Using Tomcat JNDI I am successful at doing JNDI lookups to Glassfish. There are
> some tips here
>
> https://glassfish.dev.java.net/javaee5/ejb/EJB_FAQ.html#nonJavaEEwebcontainerRemoteEJB
>
> and here
>
> http://technology.amis.nl/blog/?p=1368

Thanks for the pointer! I'll look into this more. :-)

Amy

>
>
> HTH, Wouter van Reeven
>
> On Wed, Jan 17, 2007 at 11:58:35AM -0800, Amy Roh wrote:
>
>>Hi,
>>
>>I'm trying to enable GlassFish JNDI after embedding Tomcat in GlassFish.
>>
>>I turn off Catalina naming support (catalina.useNaming=false) and set
>>JNDI properties as below to use the GlassFish JNDI.
>>
>>System.setProperty(Context.URL_PKG_PREFIXES,"com.sun.enterprise.naming")
>>
>>System.setProperty(Context.INITIAL_CONTEXT_FACTORY,"com.sun.enterprise.naming.SerialInitContextFactory")
>>
>>System.setProperty(Context.STATE_FACTORIES,"com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl")
>>
>>JNDI lookup still doesn't work. Anyone has experience with this (what
>>am I missing)?
>>
>>Thanks,
>>Amy
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>>For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>