Exemplo n.º 1
0
 private static void startServerMode() {
   System.out.println("start server mode - initializing rmi...");
   try {
     localServer.initRMI();
     activeServerIndex = ClientConnection.getServerIndex(localServer.getServerName());
     System.out.println("Server[" + activeServerIndex + "] is listening...");
   } catch (RemoteException ex) {
     System.out.println("RMI creation remote exception occured");
     System.out.println(ex.getMessage());
   } catch (AlreadyBoundException ex) {
     System.out.println("Already Bound");
     System.out.println(ex.getMessage());
   }
 }