users@glassfish.java.net

Re: Lookup problem using JNDI with Glassfish 9.1

From: <glassfish_at_javadesktop.org>
Date: Fri, 01 Jun 2007 17:31:16 PDT

I have a similar problem with my Java 1.6 JMS client app attempting to connect to a remote 9.1 server. Why doesn't the java.naming.provider.url=iiop://remoteHost:3700 work in the InitialContext(env) ? I get the error

WARNING: "IOP00410201: (COMM_FAILURE) Connection failure: socketType: IIOP_CLEAR_TEXT; hostname: localhost; port: 3700"

org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 201 completed: No

        at com.sun.corba.ee.impl.logging.ORBUtilSystemException.connectFailure(ORBUtilSystemException.java:2348)

However, using the -Dorg.omg.CORBA.ORBInitialHost=remoteHost works correctly and my JMS application connects and receives messages. I use java.naming.factory.initial = com.sun.enterprise.naming.SerialInitContextFactory. This worked on previous.
[Message sent by forum member 'shellst' (shellst)]

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