Having experienced this myself, I may have a workaround for you.
This workaround requires that you use a name to access the server, not
an IP address. What happens is that the server sends its server name (or
IP address, if none is set) with remote objects to the client. The
client then in turn tries to connect back to the server and fails,
because the server sent its private address.
What you need to do is to trick Glassfish to send its hostname, even
when that hostname usually resolves to another IP.
1.) Setup a DNS entry with the public IP address for your server
2.) On the server, map this hostname to the private IP of the server
(add an entry to /etc/hosts)
3.) In the administration console change the properties of the IIOP
Listener to specifically listen on the server name you just added.
The listen address by default is 0.0.0.0, which makes Glassfish send the
private IP address to clients. As the hostname maps to the private IP
address on the server, the app server can perfectly bind its
serversocket onto that interface. It then sends the hostname it bound
instead of the IP address and your clients will resolve this hostname to
the public IP due to the DNS entries.
best regards,
Florian
glassfish_at_javadesktop.org wrote:
> I have asked the ORB team to chime in on this. It still could be an issue in how the app client container is preparing the environment within which the ORB is operating, as opposed to an issue with the ORB itself. But those folks should be able to shed some light on this either way.
>
> - Tim
> [Message sent by forum member 'tjquinn' (tjquinn)]
>
> http://forums.java.net/jive/thread.jspa?messageID=217837
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>
--
3Kraft Software | Applications | Development
Wasagasse 26/2
1090 Vienna
Austria
Phone: +43 (0)1 920 45 49
Fax: +43 (0)1 920 45 49
Mobile: +43 (699) 102 53 901
E-Mail: florian.bruckner_at_3kraft.com
Web: http://www.3kraft.com