Greetings,
how to put the JBOSS server listening on the host name instead the IP
address?
I'm trying to invoke a EJB but my server address has 1 network interface
card which is viewed as 10.xxx and as 192.xxx, dependent of the network
(the 192.xxx is translated by NAT in the firewall).
When I invoke my EJB (directly or over HTTP), if the client is in the network
10.xxx all works fine. When the client is in the 192.xxx network it
hangs on the lookup() for a while (about 1-2 min) and then it will hang
for long time in the create() until an exception is thrown:
lookup... narrow... create... java.rmi.ConnectException: Connection refused to host: 10.112.80.4; nested exception is: java.net.ConnectException: Connection timed out at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:567)
Using -Djava.rmi.server.hostname=.