Re: specifying range for rmiregistry to bind from
Esmond Pitt <[email protected]>
| Newsgroups | gmane.comp.java.sun.rmi |
|---|---|
| Message-ID | <19230462.1109754191035.JavaMail.imail@web05ps> |
Joel
1. You can have all your RMI servers exported on the same port by specifying it to UnicastRemoteObject constructor or exportObject method under the following conditions:
a. they all have no socket factories
or
b. they all have equal socket factories as determined by Object.equals(). This means that all RMIServerSocketFactories should export plausible implementations of equals(), generally along the lines of
public boolean equals(Object that)
{
return that != null && that.getClass() == this.getClass();
}
Subclassing UnicastRemoteObject does not bear on this question.
2. If you are seriously interested in RMI port security I invite you to look at my RMI Proxy product at http://www.rmiproxy.com. This is in part an enhanced RMI Registry which performs application-protocol proxying for RMI/JRMP and which only uses one port, by default 1099. If you want to know more about this solution please contact me off-list. We have a beta of R2.0 of this product coming up with many new features including a management GUI and a JMX-based remote management API.
Esmond Pitt
author 'java.rmi' http://www.rmiproxy.com/javarmi
===========================================================================
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