users@glassfish.java.net

Standalone client hangs on lookup of remote bean

From: <glassfish_at_javadesktop.org>
Date: Fri, 08 Jan 2010 04:17:05 PST

Hello,

I've got a standalone java client with the gf-client.jar of the local glassfish-v3 installation in the classpath. The EJB JAR is deployed on a remote host in the local network.

The client simply does the following...

InitialContext ic = new InitialContext();
MySessionBeanRemote bean = (MySessionBeanRemote) ic.lookup(
                "local.host.test.MySessionBeanRemote");

...and hangs on the [i]lookup()[/i] call. Although a TCP connection to port 3700 on the remote glassfish installation is established.

I tried setting the JVM properties as described in the FAQ and in
http://blogs.sun.com/dadelhardt/entry/standalone_iiop_clients_with_glassfish
without success.

Deploying the application on a local glassfish-v3 installation and running the client on the same machine works as expected.

Any idea what could be wrong here?
[Message sent by forum member 'anusplus' (anus.plus_at_gmx.de)]

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