Exemple #1
0
  public boolean shutdown() throws RemoteException {

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