createServiceID()));
/* Get the activation system */
ProxyPreparer actSysPreparer = (ProxyPreparer) config.getEntry(
"com.sun.jini.example.hello.Server", "activationSystemPreparer",
ProxyPreparer.class, new BasicProxyPreparer());
ActivationSystem actSys =
(ActivationSystem) actSysPreparer.prepareProxy(
ActivationGroup.getSystem());
/* Create the activation group */
ActivationGroupID gid = actSys.registerGroup(groupDesc);
/* Create the activation descriptor */
ActivationDesc actDesc =
new ActivationDesc(
gid, ActivatableServer.class.getName(),
null /* location */, data, true /* restart */);
/* Register the activation descriptor */
ProxyPreparer actIdPreparer = (ProxyPreparer) config.getEntry(
"com.sun.jini.example.hello.Server", "activationIdPreparer",
ProxyPreparer.class, new BasicProxyPreparer());
ActivationID aid = (ActivationID) actIdPreparer.prepareProxy(
actSys.registerObject(actDesc));
/* Activate the server */
aid.activate(true);