Package sun.rmi.server

Examples of sun.rmi.server.UnicastServerRef


     */
    public RegistryImpl(int port)
        throws RemoteException
    {
        LiveRef lref = new LiveRef(id, port);
        setup(new UnicastServerRef(lref));
    }
View Full Code Here


            synchronized (this) {
                if (firstExported == null)
                    firstExported = obj;
            }

            final UnicastServerRef ref;
            if (csf == null && ssf == null)
                ref = new UnicastServerRef(port);
            else
                ref = new UnicastServerRef2(port, csf, ssf);
            return ref.exportObject(obj, null, true);
        }
View Full Code Here

     */
    public RegistryImpl(int port)
        throws RemoteException
    {
        LiveRef lref = new LiveRef(id, port);
        setup(new UnicastServerRef(lref));
    }
View Full Code Here

            /* Server ref must be created and assigned before remote object
             * 'this' can be exported.
             */
            LiveRef lref =
                new LiveRef(new ObjID(ObjID.ACTIVATOR_ID), port, null, ssf);
            UnicastServerRef uref = new UnicastServerRef(lref);
            ref = uref;
            uref.exportObject(this, null, false);
        }
View Full Code Here

        {
            /* Server ref must be created and assigned before remote object
             * 'this' can be exported.
             */
            LiveRef lref = new LiveRef(new ObjID(4), port, null, ssf);
            UnicastServerRef uref = new UnicastServerRef(lref);
            ref = uref;
            uref.exportObject(this, null);
        }
View Full Code Here

      throw new IllegalStateException("already used for export");
  } else if (impl == null) {
      throw new NullPointerException();
  }
  ref = new WeakReference(impl);
  UnicastServerRef uref = getServerRef(new LiveRef(new ObjID(id), port));
  try {
      Object[] args = new Object[] { impl, null, Boolean.TRUE };
      return (Remote) exportMethod.invoke(uref, args);
  } catch (InvocationTargetException e) {
      Throwable t = e.getTargetException();
View Full Code Here

      throw (Error) new IllegalAccessError().initCause(e);
  }
    }

    UnicastServerRef getServerRef(LiveRef lref) {
  return new UnicastServerRef(lref);
    }
View Full Code Here

TOP

Related Classes of sun.rmi.server.UnicastServerRef

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.