Activation port - API comments
Esmond Pitt <[email protected]>
| Newsgroups | gmane.comp.java.sun.rmi |
|---|---|
| Message-ID | <14140109.1108702672702.JavaMail.imail@web01ps> |
[this is really for Peter J.]
The 'rmid' can be started with a port other than 1098, and this has its uses. However the implementation of this feature in the API is incomplete:
(1) No ActivationGroup.getSystem(int port) method is provided. You can get around this with a Naming.lookup().
(2) No Activatable.register() method is provided taking a port number argument. Again you can get around this by using ActivationSystem.registerObject(), using an ActivationSystem obtained via Naming.lookup(), but you then have to turn the ActivationID into a stub and the only way of doing this without using sun.rmi code is to call ActivationID.activate(), which of course has the possibly unwanted side-effect of activating the object being registered.
In summary what seems to be required is the addition of
ActivationGroup.getSystem(int port);
and
Activatable.register(ActivationDesc desc, int port);
For comment before I parade this as an RFE.
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