X-Git-Url: http://wamblee.org/gitweb/?a=blobdiff_plain;f=mythtv%2Fmonitor%2Fsrc%2Fmain%2Fjava%2Forg%2Fwamblee%2Fmythtv%2FApplication.java;h=901e4417d9f75aed39759b0686b56e8f0550802e;hb=6baa1546bf990db7c66e9837bbb23f1070bf81e0;hp=539557516fac667fb932507d563db5bd834197a8;hpb=f068b3e2c5cbb4498f5d223e97fb8e34cbae60cb;p=utils diff --git a/mythtv/monitor/src/main/java/org/wamblee/mythtv/Application.java b/mythtv/monitor/src/main/java/org/wamblee/mythtv/Application.java index 53955751..901e4417 100644 --- a/mythtv/monitor/src/main/java/org/wamblee/mythtv/Application.java +++ b/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); }