169170171172173174175176177178179
} }); Runtime.getRuntime().addShutdownHook(new Thread(new Runnable() { public void run() { srv.notifyStop(); srv.destroyAllServlets(); } })); Thread exposerThread = new Thread("ContextExposer") { public void run() { srv.serve();