Re: RMI registry and bind objects IP

Erez Katz <[email protected]> Tue, 19 Feb 2008 12:31:45 -0800
Newsgroups gmane.comp.java.sun.rmi
Message-ID <[email protected]>
I don't see a way to specify the hostname when using rmiregistry as a seperate process.
  However, you could create one inside your process (see java.rmi.registry.LocateRegistry) and then either hopefully it would use that property.
   
  Erez
   
  
Adnan Memon <[email protected]> wrote:
  I have multi-homed machine and want to export the objects and run 
registry on one of the local IPs ... I don't see anyway of doing it. 
The JVM property java.rmi.server.hostname only allows the client to 
connect to the given IP but telnet still tells me registry is 
listening to 0.0.0.0 and objects are also exported on 0.0.0.0 which 
means any/all local IPs.

What I am struggling with is ... running two registries on single 
machine on same port but different local IP addresses ... any way to 
do that in RMI?

-
Adnan Memon


===========================================================================
To unsubscribe, send email to [email protected] and include in the body
of the message "signoff RMI-USERS". For general help, send email to
[email protected] and include in the body of the message "help".

For a list of frequently asked RMI questions please refer to:
http://java.sun.com/j2se/1.3/docs/guide/rmi/faq.html

To view past RMI-USERS postings, please see:
http://archives.java.sun.com/archives/rmi-users.html


       
---------------------------------
Be a better friend, newshound, and know-it-all with Yahoo! Mobile.  Try it now.

===========================================================================
To unsubscribe, send email to [email protected] and include in the body
of the message "signoff RMI-USERS".  For general help, send email to
[email protected] and include in the body of the message "help".

For a list of frequently asked RMI questions please refer to:
http://java.sun.com/j2se/1.3/docs/guide/rmi/faq.html

To view past RMI-USERS postings, please see:
http://archives.java.sun.com/archives/rmi-users.html