Re: RMI Activation lifecycle (binding to the rmiregistry)

Bob Scheifler <[email protected]> Mon, 5 Dec 2005 12:56:49 -0500
Newsgroups gmane.comp.java.sun.rmi
Message-ID <[email protected]>
> 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.

On the contrary, it's quite normal to use the registry or some other
discovery mechanism. Specify a restart value of true in the ActivationDesc
for the activatable object, and it will be restarted automatically
whenever rmid is restarted, and the activatable object can then
republish itself as necessary.

- Bob

===========================================================================
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