Package java.rmi.activation

Examples of java.rmi.activation.ActivationDesc


      logger.throwing(ActivateWrapper.class.getName(),
          "register", me);
      throw me;
  }
 
  ActivationDesc adesc =
      new ActivationDesc(gid,
    ActivateWrapper.class.getName(),
    null,
    data,
    restart
  );     
View Full Code Here


    public static void resetMailboxToOnDemandActivation(ActivationID aid)
  throws ActivationException, RemoteException
    {
  ActivationSystem sys = ActivationGroup.getSystem();
  ActivationDesc adesc = sys.getActivationDesc(aid);
  boolean restart = false;
  ActivationDesc newDesc =
      new ActivationDesc(
    adesc.getGroupID(),
    adesc.getClassName(),
    adesc.getLocation(),
    adesc.getData(),
    restart
View Full Code Here

        String implClass = KillVMObjectImpl.class.getName();
  String codeLocation = null; //BDJ - TEMP WORKAROUND FOR COMPILE
//          String codeLocation = ClassLoaderUtil.URLsToString
//                                (ClassLoaderUtil.getClasspathURLs
//                                 (System.getProperty("java.class.path")));
        ActivationDesc desc = new ActivationDesc(gid,implClass,
                                                 codeLocation,null,false);
        KillVMObject serverStub = (KillVMObject)(Activatable.register(desc));
        long delay = serverStub.killVM();       
        try {Thread.sleep(delay);} catch (InterruptedException e) { }
    }//end killActivationGroup
View Full Code Here

            MarshalledObject data = new MarshalledObject(location);
      if (activationID != null) {
    try {
//                      if (sharedActivationRef == null) {
            ActivationSystem sys = ActivationGroup.getSystem();
            ActivationDesc desc = sys.getActivationDesc
                                                               (activationID);
            desc = new ActivationDesc(desc.getGroupID(),
                    desc.getClassName(),
                    desc.getLocation(),
                    data,
                    desc.getRestartMode());
            sys.setActivationDesc(activationID, desc);
//                      } else {//in a shared activation group
//                          sharedActivationRef.setInitializationData(activationID,
//                                                                    data);
//                      }//endif
View Full Code Here

           "client1 able to setActivationGroupDesc");
      } catch (SecurityException e) {
      }
      // can call registerObject
      ActivationID aid =
    sys.registerObject(new ActivationDesc(gid,
                  Impl.class.getName(),
                  null, null));
      // cannot call getProxyVerifier
      try {
    Security.verifyObjectTrust(aid, null, trustCtx);
    throw new RuntimeException(
           "client1 able to verifyObjectTrust");
      } catch (SecurityException e) {
      }
      // can call getActivationDesc
      ActivationDesc adesc = sys.getActivationDesc(aid);
      // cannot call setActivationDesc
      try {
    sys.setActivationDesc(aid, adesc);
    throw new RuntimeException(
           "client1 able to setActivationDesc");
View Full Code Here

      // can call setActivationGroupDesc to set to default
      sys.setActivationGroupDesc(gid,
               new ActivationGroupDesc(null, null));
      // 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);
      // can call getActivationDesc
      ActivationDesc adesc = sys.getActivationDesc(aid);
      // can call setActivationDesc
      sys.setActivationDesc(aid, adesc);
      // can call unregisterObject
      sys.unregisterObject(aid);
      // cannot call activeGroup
View Full Code Here

    throw new RuntimeException(
           "nobody able to setActivationGroupDesc");
      } catch (ConnectIOException e) {
      }
      try {
    sys.registerObject(new ActivationDesc(gid, "Foo", null, null));
    throw new RuntimeException("nobody able to registerObject");
      } catch (ConnectIOException e) {
      }
      try {
    sys.getActivationDesc(null);
View Full Code Here

    throw new RuntimeException(
           "server able to setActivationGroupDesc");
      } catch (SecurityException e) {
      }
      try {
    sys.registerObject(new ActivationDesc(gid, "Foo", null, null));
    throw new RuntimeException("server able to registerObject");
      } catch (SecurityException e) {
      }
      try {
    sys.getActivationDesc(null);
View Full Code Here

  /* 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(
View Full Code Here

TOP

Related Classes of java.rmi.activation.ActivationDesc

Copyright © 2018 www.massapicom. 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.