CORBA lookup on a LAN hangs

后端 未结 1 518
后悔当初
后悔当初 2020-12-20 07:44

Is there any specific Glassfish configuration required to allow remote CORBA lookup across a LAN? Or, does, perhaps, the routers firewall need configuration?

How

相关标签:
1条回答
  • 2020-12-20 08:20

    Been having the same "hanging forever" lookup behavior with a standalone ejb client running on a remote host. It turned out to be related to the server host's ability to resolve its own hostname into its own non-loopback address. I resolved it by adding / fixing an entry in /etc/hosts:

    10.0.10.102    my-server-hostname
    

    I checked that the server could actually resolve the right ip address with hostname -i :

    $ hostname -i
    10.0.10.102
    

    After restarting GlassFish, remote lookup and call to EJB worked like a charm!

    Explanation

    I found this solution after sniffing the traffic between my client and server. The underlying protocol is GIOP (had never heard of it).

    When executing the remote lookup, my client's request was actually able to reach GlassFish. But the server replied with a misleading "Location Forward" response, indicating 127.0.1.1 as a IIOP:Profile_host. 127.0.1.1 was the loopback ip address that my server's hostname resolved to before I fixed the /etc/hosts.

    0 讨论(0)
提交回复
热议问题