users@glassfish.java.net

JBoss lookup on Glassfish is possible?

From: <glassfish_at_javadesktop.org>
Date: Tue, 16 Sep 2008 15:47:48 PDT

I have an application in Glassfish, and a application in JBoss.

How can I lookup in gf from JBoss?

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);

But I get a ClassNotFoundException: com.sun.enterprise.naming.SerialInitContextFactory

The appserv-rt.jar and the others necessary jars are in lib directory in jboss.
[Message sent by forum member 'rodrigosaito' (rodrigosaito)]

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