Example #1
0
 protected void disable() {
   try {
     registry.unbind("Server");
   } catch (RemoteException | NotBoundException e) {
     catcher.catchException(e);
   }
 }
Example #2
0
 public RmiServer() {
   try {
     IRmiServer server = (IRmiServer) UnicastRemoteObject.exportObject(this, 0);
     registry = LocateRegistry.createRegistry(16666);
     registry.bind("Server", server);
   } catch (RemoteException | AlreadyBoundException e) {
     catcher.catchException(e);
   }
 }