All Implemented Interfaces:
Activatorfacilitates remote object activation. A "faulting" remote reference calls the activator's
activatemethod to obtain a "live" reference to a "activatable" remote object. Upon receiving a request for activation, the activator looks up the activation descriptor for the activation identifier,
id, determines the group in which the object should be activated initiates object re-creation via the group's
ActivationInstantiator(via a call to the
newInstancemethod). The activator initiates the execution of activation groups as necessary. For example, if an activation group for a specific group identifier is not already executing, the activator initiates the execution of a VM for the group.
Activator works closely with
ActivationSystem, which provides a means for registering
groups and objects within those groups, and
which recives information about active and inactive objects and inactive
The activator is responsible for monitoring and detecting when activation groups fail so that it can remove stale remote references to groups and active object's within those groups.
|Method from java.rmi.activation.Activator Summary:|
|Method from java.rmi.activation.Activator Detail:|
public MarshalledObject<Remote> activate(ActivationID id, boolean force) throws ActivationException, UnknownObjectException, RemoteException
If the activation group for the object's group descriptor does
not yet exist, the activator starts an
Note that the activator receives a "marshalled" object instead of a Remote object so that the activator does not need to load the code for that object, or participate in distributed garbage collection for that object. If the activator kept a strong reference to the remote object, the activator would then prevent the object from being garbage collected under the normal distributed garbage collection mechanism.