I have java web start swing client and i want to remotely connect to a server-side Enterprise Java Bean via ORB. The client runs on my laptop (windows 8) while the server is on GlassFish application server 3.1 on a remote Linux machine (CentOS 64bit).
When i try 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 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.
I found out that people had similar problems in past but proposed fixes don't work in my case.
On Linux CentOS machine content of etc/hosts file is as follows:
::1 ip6-localhost ip6-loopback
where 5.9.x.x is external address of my linux machine (ping succeed). CentOS-64-64-minimal is name that i got when i connect to
Linux machine via putty, i quess it is server name?
This is how putty console looks like: [root@CentOS-64-64-minimal ~]#
Can someone help me, what is correct configuration of etc/hosts file to make things work.
I am stuck with this problems for a long time and any help will be appreciated.