Examples of ActivatableServerRef


Examples of gnu.java.rmi.server.ActivatableServerRef

   
    // Unregister it also (otherwise will be activated during the subsequent
    // call.
    if (aref instanceof ActivatableServerRef)
      {
        ActivatableServerRef aar = (ActivatableServerRef) aref;
        UnicastServer.unregisterActivatable(aar.actId);
      }
    return UnicastRemoteObject.unexportObject(obj, force);
  }
View Full Code Here

Examples of gnu.java.rmi.server.ActivatableServerRef

   */
  private static Remote export(ActivationID id, Remote obj, int port,
             RMIServerSocketFactory serverSocketFactory)
      throws RemoteException
  {
    ActivatableServerRef sref = null;
    sref = new ActivatableServerRef(makeId(id), id, port, serverSocketFactory);
    return sref.exportObject(obj);
 
View Full Code Here

Examples of gnu.java.rmi.server.ActivatableServerRef

   */
  static Remote toStub(ActivationID anId, Class stubFor)
  {
    try
      {
        ActivatableServerRef asr =
          new ActivatableServerRef(makeId(anId), anId, 0, null);
        UnicastServer.exportActivatableObject(asr);
        return asr.exportClass(stubFor);
      }
    catch (RemoteException e)
      {
        InternalError ierr = new InternalError(
          "Failed to obtain activatable stub");
View Full Code Here

Examples of org.apache.harmony.rmi.remoteref.ActivatableServerRef

     */
    public static Remote exportObject(Remote robj, ActivationID aid, int port,
            RMIClientSocketFactory csf, RMIServerSocketFactory ssf)
            throws RemoteException {

        ActivatableServerRef asr = new ActivatableServerRef(aid, port, csf, ssf);

        return ExportManager.exportObject(robj, asr, false); //asr.exportObject(robj, null, false, true, true);
    }
View Full Code Here

Examples of org.apache.harmony.rmi.remoteref.ActivatableServerRef

     * @com.intel.drl.spec_ref
     */
    public static Remote exportObject(Remote robj, ActivationID aid, int port) throws RemoteException {
        // rmi.log.10=Activatable >>> exportObject
        rlog.log(RMILog.VERBOSE, Messages.getString("rmi.log.10")); //$NON-NLS-1$
        ActivatableServerRef asr = new ActivatableServerRef(aid, port);
        if (robj instanceof Activatable) {
            ((Activatable) robj).ref = asr;
        }
        // rmi.log.11=Activatable >>> ActivatableServerRef={0}
        rlog.log(RMILog.VERBOSE, Messages.getString("rmi.log.11", asr)); //$NON-NLS-1$
View Full Code Here

Examples of org.apache.harmony.rmi.remoteref.ActivatableServerRef

        return aid;
    }

    public static Remote exportObject(Remote robj, ActivationID aid, int port,
            RMIClientSocketFactory csf, RMIServerSocketFactory ssf) throws RemoteException {
        ActivatableServerRef asr = new ActivatableServerRef(aid, port, csf, ssf);
        return ExportManager.exportObject(robj, asr, false); //asr.exportObject(robj, null, false, true, true);
    }
View Full Code Here

Examples of org.apache.harmony.rmi.remoteref.ActivatableServerRef

    public static Remote exportObject(Remote robj, ActivationID aid, int port)
            throws RemoteException {
        // rmi.log.10=Activatable >>> exportObject
        rlog.log(RMILog.VERBOSE, Messages.getString("rmi.log.10")); //$NON-NLS-1$
        ActivatableServerRef asr = new ActivatableServerRef(aid, port);
        if (robj instanceof Activatable) {
            ((Activatable) robj).ref = asr;
        }
        // rmi.log.11=Activatable >>> ActivatableServerRef={0}
        rlog.log(RMILog.VERBOSE, Messages.getString("rmi.log.11", asr)); //$NON-NLS-1$
View Full Code Here

Examples of org.apache.harmony.rmi.remoteref.ActivatableServerRef

        return aid;
    }

    public static Remote exportObject(Remote robj, ActivationID aid, int port,
            RMIClientSocketFactory csf, RMIServerSocketFactory ssf) throws RemoteException {
        ActivatableServerRef asr = new ActivatableServerRef(aid, port, csf, ssf);
        return ExportManager.exportObject(robj, asr, false); //asr.exportObject(robj, null, false, true, true);
    }
View Full Code Here

Examples of org.apache.harmony.rmi.remoteref.ActivatableServerRef

    public static Remote exportObject(Remote robj, ActivationID aid, int port)
            throws RemoteException {
        // rmi.log.10=Activatable >>> exportObject
        rlog.log(RMILog.VERBOSE, Messages.getString("rmi.log.10")); //$NON-NLS-1$
        ActivatableServerRef asr = new ActivatableServerRef(aid, port);
        if (robj instanceof Activatable) {
            ((Activatable) robj).ref = asr;
        }
        // rmi.log.11=Activatable >>> ActivatableServerRef={0}
        rlog.log(RMILog.VERBOSE, Messages.getString("rmi.log.11", asr)); //$NON-NLS-1$
View Full Code Here

Examples of sun.rmi.server.ActivatableServerRef

    public static Remote exportObject(Remote obj,
              ActivationID id,
              int port)
  throws RemoteException
    {
  return exportObject(obj, new ActivatableServerRef(id, port));
    }
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.