users@glassfish.java.net

GF 3.1.1 - remote client hung on lookup of connection factory

From: <forums_at_java.net>
Date: Fri, 23 Sep 2011 11:03:53 -0500 (CDT)

I've been searching forums for several days ... conclusion - I need help!

GF 3.1.1 server running on different machine as client.  Server @
172.16.0.3; client @ 172.16.0.186

Client is running in JVM that uses gf-client.jar in the classpath ...
gf-client.jar (and all other app client jars) came from running the
package-appclient script.

Server specifies IIOP Listener (orb-listener-1) with Network Address =
172.16.0.3, Listener Port = 3700, and Listener enabled.

Client specifies initial context using ...

props.put("java.naming.factory.initial",
"com.sun.enterprise.naming.SerialInitContextFactory");

props.put("java.naming.provider.url", "iiop://172.16.0.3:3700");

props.put("java.naming.factory.url.pkgs", "com.sun.enterprise.naming");

props.put("java.naming.factory.state",
"com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl");

props.setProperty("org.omg.CORBA.ORBInitialHost", "172.16.0.3");

props.setProperty("org.omg.CORBA.ORBInitialPort", "3700");

Later, client calls ...

queueConnectionFactory = context.lookup("myQueueConnectionFactory");    
<<<<<<<< HANGS HERE!!!!

According to "netstat -a" on both server and client, it looks like the
connection is in fact ESTABLISHED, but as mentioned the client is hung.
 Going thru many forum posts, generally, it seems this has been a fairly
common problem.  Thanks for reading.

Kris

 


--
[Message sent by forum member 'KrisFraley']
View Post: http://forums.java.net/node/846492