Re: RMI Activation lifecycle (binding to the rmiregistry)
Esmond Pitt <[email protected]> Sun, 4 Dec 2005 18:20:49 +1100
| Newsgroups | gmane.comp.java.sun.rmi |
|---|---|
| Organization | Melbourne Software Company |
| Message-ID | <20051204071629.WBIB17345.omta04ps.mx.bigpond.com@toshibakx1wgjb> |
Johannes The theory of RMI Activation is that you don't use the Registry at all. You serialize the stub which results from activateObject when doing the setup, and your clients just use that directly. Otherwise you get into a chicken and egg problem: the activable objects need to register themselves in the Registry when they start in order to be found, but they won't get started until they are called via a stub, i.e. they have already been found. Another possibility is to have the stubs serialized at the server side only and add a startup process to register these stubs into the Registry before clients start. EJP =========================================================================== 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