Package java.rmi.activation

Examples of java.rmi.activation.ActivationID.activate()


            /* Register the desired service with the activation system */
            aid = ActivateWrapper.register(
          gid, adesc, getRestart(), sys);
            aid = (ActivationID) activationIDPreparer.prepareProxy(aid);
   
            proxy = aid.activate(true);

      if(proxy != null) {
                proxy = innerProxyPreparer.prepareProxy(proxy);
          if (proxy instanceof ServiceProxyAccessor) {
                    proxy = ((ServiceProxyAccessor)proxy).getServiceProxy();
View Full Code Here


    throw new RuntimeException(
           "client1 able to setActivationDesc");
      } catch (SecurityException e) {
      }
      // can call activate
      Service svc = (Service) aid.activate(false);
      // make the service (and hence the group) go inactive
      UID uid1 = svc.inactivate();
      // give the service and group time to go inactive
      Thread.sleep(15000);
      // check indirectly that group actually went away the first time
View Full Code Here

      // can call registerObject
      ActivationID aid =
    sys.registerObject(new ActivationDesc(gid, "Foo", null, null));
      // cannot call activate
      try {
    aid.activate(false);
    throw new RuntimeException("client2 able to activate");
      } catch (SecurityException e) {
      }
      // can call getProxyVerifier
      Security.verifyObjectTrust(aid, null, trustCtx);
View Full Code Here

      ProxyPreparer.class, new BasicProxyPreparer());
  ActivationID aid = (ActivationID) actIdPreparer.prepareProxy(
      actSys.registerObject(actDesc));

  /* Activate the server */
  aid.activate(true);

  System.out.println("Activated server");
    }

    /**
 
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.