jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From EJP <esmond.p...@verismartsoftware.com>
Subject Re: RMI problem
Date Mon, 26 Oct 2009 04:04:33 GMT



Jukka Zitting wrote:
> 
> By default the RMI server binds itself just to a single IP address,
> 
That's not correct.

By default it binds itself to 0.0.0.0, i.e. INADDR_ANY, just like any other
listening socket does, unless you tell it otherwise by providing an
RMIServerSocketFactory that uses an explicit bind-address.

The issue here is not the bind address but the hostname embedded in the
stub, which is controlled by java.rmi.server.hostname and which has to be
set in the presence of misconfigured DNS or /etc/hosts files or sometimes in
multi-homed hosts. As discussed in the Sun RMI FAQ item A.1.

NB java.rmi.server.hostname has no effect on the bind-address.

EJP

-- 
View this message in context: http://www.nabble.com/RMI-problem-tp15135858p26054418.html
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.


Mime
View raw message