users@glassfish.java.net

[gf-users] Re: InitalContext lookup() hangs on standalone client

From: Tim Quinn <tim.quinn_at_oracle.com>
Date: Thu, 10 Jul 2014 09:30:32 -0500

The CORBA folks might have more to say about this, but keep in mind that the setting of org.omg.CORBA.ORBInitialHost refers, as the name suggests, to the initial contact to the server.

Subsequent messages from the server back to the client can carry additional or different host information. This is, for example, how failover is implemented.

The host passed back in the return message comes from the domain.xml settings for the system, not from the ORBInitialHost setting.

Look at the iiop-listener address setting for your default-server (or whichever server you are using). It might be set to localhost or 127.0.0.1, which means this is the address that will be passed back to the client after the initial connection has been made, and therefore the client-side ORB will use that address to try to send further messages. If you set that address correctly in the server configuration then you might see better results.

- Tim

On Jul 10, 2014, at 8:51 AM, forums_at_java.net wrote:

> This is definitely a bug in Glassfish... it tries to contact 127.0.0.1
> despite the org.omg.CORBA.ORBInitialHost instruction. try to create a local
> port forward, for example with ssh: ssh -L 3700:192.168.1.98:3700
> user_at_localhost This should (temporarily) solve your problem.
>
> --
>
> [Message sent by forum member 'nico75']
>
> View Post: http://forums.java.net/node/895757
>
>