Exemplo n.º 1
0
  public boolean shutdown() throws RemoteException {

    FlightRM flight1 = new FlightRM();
    Thread t = new Thread(flight1);
    t.start();
    return true;
  }
Exemplo n.º 2
0
 public void run() {
   try {
     Thread.sleep(1000);
     System.exit(0);
   } catch (Exception e) {
     e.printStackTrace();
   }
 }