@Override public void contextDestroyed(ServletContextEvent sce) { leitor.parar(); try { tLeitor.join(); } catch (InterruptedException e) { e.printStackTrace(); } SingleConector.finalizar(); super.contextDestroyed(sce); }
@Override public void contextDestroyed(ServletContextEvent sce) { System.out.println("LightSaver: finalizando aplicação..."); leitor.parar(); try { tLeitor.join(); } catch (InterruptedException e) { e.printStackTrace(); } SingleConector.finalizar(); super.contextDestroyed(sce); }