/** * 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 } }
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; }