X-Git-Url: http://wamblee.org/gitweb/?a=blobdiff_plain;f=trunk%2Fmythtv%2Fmonitor%2Fsrc%2Fmain%2Fjava%2Forg%2Fwamblee%2Fmythtv%2FApplication.java;h=7cc13f87d3b6b27045528aac070e5ba562118834;hb=dc4135d8f908640e77c1aa0a59e5039bbff7d7bd;hp=539557516fac667fb932507d563db5bd834197a8;hpb=7fdeb4db9854a2fe238489199c5415440b767e96;p=utils diff --git a/trunk/mythtv/monitor/src/main/java/org/wamblee/mythtv/Application.java b/trunk/mythtv/monitor/src/main/java/org/wamblee/mythtv/Application.java index 53955751..7cc13f87 100644 --- a/trunk/mythtv/monitor/src/main/java/org/wamblee/mythtv/Application.java +++ b/trunk/mythtv/monitor/src/main/java/org/wamblee/mythtv/Application.java @@ -32,14 +32,16 @@ import org.wamblee.general.BeanKernel; /** * + * + * @author Erik Brakkee */ public class Application implements ServletContextListener { private static final Log LOG = LogFactory.getLog(Application.class); - @Resource(mappedName = "jms/MythtvConnectionFactory") + @Resource(name = "MythtvConnectionFactory") private ConnectionFactory connectionFactory; - @Resource(mappedName = "jms/MythtvTimer") + @Resource(name = "MythtvTimer") private Queue timerQueue; /* @@ -62,6 +64,7 @@ public class Application implements ServletContextListener { msg.setObject(config.getIntervalSeconds()); MessageProducer producer = session.createProducer(timerQueue); producer.send(msg); + LOG.info("Message sent"); } catch (Exception e) { LOG.fatal("Error sending message", e); } @@ -76,7 +79,6 @@ public class Application implements ServletContextListener { public void contextDestroyed(ServletContextEvent arg0) { LOG.info("terminating"); - // TODO check if timer will be automatically stopped. // Empty. } }