/**
  * When the server-side connector webapp is shutdown by the servlet container, the
  * ServerNotificationManager calls this method. All pending notifications are dropped.
  */
 public void close() {
   exiting = true;
   synchronized (que) {
     que.notify();
   }
   try {
     dispatchThr.join();
   } catch (InterruptedException intre) {
   }
   try {
     out.close();
   } catch (IOException ioe) {
     // XXX: Log it
   }
 }
예제 #2
0
파일: Q2.java 프로젝트: rlishtaba/jPOS
 public void shutdown(boolean join) {
   shutdown = true;
   if (q2Thread != null) {
     log.info("shutting down");
     q2Thread.interrupt();
     if (join) {
       try {
         q2Thread.join();
         log.info("shutdown done");
       } catch (InterruptedException e) {
         log.warn(e);
       }
     }
   }
   q2Thread = null;
 }