users@glassfish.java.net

Re: Problem with remote connection to GlassFish 3.1.1 on ...

From: <forums_at_java.net>
Date: Wed, 11 Jan 2012 14:32:01 -0600 (CST)

[quote=mastern]

Hi all,
from a javaws swing client, I want to remotely connect to a server-side
Enterprise Java Bean via ORB. The client runs on my laptop while the
server-side system (a Java enterprise application) to which I want to connect
runs on a GlassFish 3.1.1-b12 on a remote Linux machine.
When trying to connect to the server-side EJB via a JNDI-lookup, the client
just gets stuck and never returns (unless I do not kill it manually). There
is neither an exception on the client nor on the server (according to the log
files). However, it works when I deploy it to the GlassFish installation on
my own (Linux) machine and connect to "localhost". Even more strange, the
JNDI-lookup also works when I deploy the EAR to a GlassFish installation
(same version) on a remote /Windows/ machine. This makes me think that there
is nothing wrong with my ORB, IIOP, JNDI or port settings.
In a nutshell, it appears that the client is able to establish the ORB
connection to a GlassFish on "localhost" (Linux or Windows) as well as on
remote hosts with /Windows/, but not with /Linux/. One could justifiably
assume that the Linux machine's firewall blocks the connection.
Unfortunately, the firewall settings can not cause the problem as it is
possible to connect to the system on the very same Linux machine when it is
deployed on a GlassFish 2.1.1 (using the same ORB, IIOP, JNDI and port
settings, etc.).
Especially the fact that it is working when deployed to a GlassFish on a
remote Windows machine confuses me a lot; -- and by now, I ran out of ideas.
I would be very happy about any information or suggestion that can help to
solve this problem.

[/quote]

I have exactly the same problem!! Some help would be appreciated.


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