Currently, the activatable object registered in rmid is activated on demand. How can I activate it without waiting for the first RMI call?

Edward Harned

The activatable object is activated on demand by default.  You can have it activated when the activation daemon starts by setting the restart boolean to true in the Activation Description. (see the javadoc for the full details)

Set up your java.rmi.activation.ActivationDesc with the following constructor:

public ActivationDesc(String className,
                                    String location,
                                    MarshalledObject data,
                                    boolean restart)

Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

About | Sitemap | Contact