コード例 #1
0
  @Override
  public void contextDestroyed(ServletContextEvent sce) {
    leitor.parar();
    try {
      tLeitor.join();
    } catch (InterruptedException e) {
      e.printStackTrace();
    }
    SingleConector.finalizar();

    super.contextDestroyed(sce);
  }
コード例 #2
0
  @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);
  }