[jboss-user] [Remoting] - Re: server bind address - documentation

ron.sigal@jboss.com do-not-reply at jboss.com
Tue Feb 27 18:48:56 EST 2007


Hi John,

That paragraph really is correct.

I think the point is that clientConnectAddress is only meant to be used when the client connects through a router that maps an external host name to the actual name of the actual host.  The fact that clientConnectAddress is set tells the server that the host name in the InvokerLocator is *not* the real host name, thereby throwing  the server into the default case of using the local host address.  

The logic is


  | if (serverBindAddress is set)
  |     use it
  | else if (clientConnectAddress is not set)
  |     use host from InvokerLocator
  | else
  |     use local host address
  | 

The local host address, by the way, is obtained by the call


  | InetAddress.getLocalHost().getHostAddress()
  | 

which returns the IP address of the local host.  

I'll try to make the paragraph clearer.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4023373#4023373

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4023373



More information about the jboss-user mailing list