From c92d017cf519b3ab47af0397906d25320b1dcd2a Mon Sep 17 00:00:00 2001 From: gleimar Date: Fri, 29 Apr 2016 20:53:08 +0000 Subject: [PATCH] =?UTF-8?q?refatora=C3=A7=C3=A3o=20fixes=20bug#7405?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@55422 d1611594-4594-4d17-8e1d-87c2c4800839 --- .../ventaboletos/web/utilerias/MyAppInit.java | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/src/java/com/rjconsultores/ventaboletos/web/utilerias/MyAppInit.java b/src/java/com/rjconsultores/ventaboletos/web/utilerias/MyAppInit.java index 6389cf571..7e69ba123 100644 --- a/src/java/com/rjconsultores/ventaboletos/web/utilerias/MyAppInit.java +++ b/src/java/com/rjconsultores/ventaboletos/web/utilerias/MyAppInit.java @@ -55,7 +55,13 @@ public class MyAppInit implements org.zkoss.zk.ui.util.WebAppInit { Labels.register(new MyLabelLocatorGeneral((ServletContext) wapp.getNativeContext())); Labels.register(new MyLabelLocatorCliente((ServletContext) wapp.getNativeContext())); - if (!ipBloqueadoGeracaoServico()) { + boolean ipBloqueadoGeracaoServico = ipBloqueadoGeracaoServico(); + + log.info("ipBloqueadoGeracaoServico="+ipBloqueadoGeracaoServico); + + if (!ipBloqueadoGeracaoServico) { + log.info("ip liberado"); + // Generacion Automatica de Corridas jobGeneracionCorridas(); } @@ -119,11 +125,12 @@ public class MyAppInit implements org.zkoss.zk.ui.util.WebAppInit { Integer[] hora = horaExecucion(); if (hora == null) { - log.debug("constante HORA_GENERACION_CORRIDA não habilitada."); + log.info("constante HORA_GENERACION_CORRIDA não habilitada."); + return; } - log.debug("Horario de geracao de corrida : " + hora[0] + ":" + hora[1]); + log.info("Horario de geracao de corrida : " + hora[0] + ":" + hora[1]); Trigger trigger = TriggerUtils.makeDailyTrigger("generacionCorridasTrigger", hora[0], hora[1]);