Re: Rmi working only on localhost
Vinod Johnson - Sun Microsystems <[email protected]>
| Newsgroups | gmane.comp.java.sun.rmi |
|---|---|
| Message-ID | <[email protected]> |
> > Thank you very much, this solved the problem! > Is there a way to specify java.rmi.server.hostname by .java code or by a > system wide setting? > I dont believe there is a way to set this system wide, it is a per VM setting. As alluded to in another thread, in your case, this is a workaround. It will cease to work if and when your IP address changes. According to http://java.sun.com/j2se/1.5.0/docs/guide/rmi/javarmiproperties.html you can force the RMI runtime to use the host name through the java.rmi.server.useLocalHostname property, but I suspect that since name resolution does not seem to be set up correctly on your hosts, that this will not work either. So if you intend on making this work in general, please make sure that your Linux hosts are set up to resolve their host names correctly. -- - vinod =========================================================================== 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