users@glassfish.java.net

Re: JBoss lookup on Glassfish is possible?

From: Narayana Rallabandi <Narayana.Rallabandi_at_Sun.COM>
Date: Sat, 20 Dec 2008 14:01:37 +0530

Seems you are trying:

Properties properties = new Properties();
properties.setProperty("java.naming.factory.initial",
"com.sun.enterprise.naming.SerialInitContextFactory");
properties.setProperty("java.naming.factory.url.pkgs",
"com.sun.enterprise.naming");
properties.setProperty("java.naming.factory.state",
"com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl");
properties.setProperty("org.omg.CORBA.ORBInitialHost", "127.0.0.1");
Context ic = new InitialContext(properties);


Have you tried with the following JNDI properties?

java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
java.naming.provider.url=localhost:1099
java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces

This gives handle to the outside.. anyways I am presuming you are having
the required jars in the classpath..

--Narayanaa

glassfish_at_javadesktop.org wrote:
> Did you ever figure this out? I am in the same situation and have the exact same problem.
> [Message sent by forum member '20div0' (20div0)]
>
> http://forums.java.net/jive/thread.jspa?messageID=322681
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>