64 |
|
|
65 |
public RegistryImpl(int port, RMIClientSocketFactory cf, RMIServerSocketFactory sf) throws RemoteException { |
public RegistryImpl(int port, RMIClientSocketFactory cf, RMIServerSocketFactory sf) throws RemoteException { |
66 |
super(new UnicastServerRef(new ObjID(ObjID.REGISTRY_ID), port, sf)); |
super(new UnicastServerRef(new ObjID(ObjID.REGISTRY_ID), port, sf)); |
67 |
((UnicastServerRef)getRef()).exportObject(this); |
// The following is unnecessary, because UnicastRemoteObject export itself automatically. |
68 |
|
//((UnicastServerRef)getRef()).exportObject(this); |
69 |
} |
} |
70 |
|
|
71 |
public Remote lookup(String name) throws RemoteException, NotBoundException, AccessException { |
public Remote lookup(String name) throws RemoteException, NotBoundException, AccessException { |