X-Git-Url: http://wamblee.org/gitweb/?a=blobdiff_plain;f=mythtv%2Fmonitor%2Fsrc%2Fmain%2Fjava%2Forg%2Fwamblee%2Fmythtv%2FApplication.java;h=36ff3077ea31053f150f3aad50dbc054c5f61858;hb=6adf43d72ff3ffe32451ba187ca94b601f34295b;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..36ff3077 100644 --- a/mythtv/monitor/src/main/java/org/wamblee/mythtv/Application.java +++ b/mythtv/monitor/src/main/java/org/wamblee/mythtv/Application.java @@ -36,10 +36,10 @@ import org.wamblee.general.BeanKernel; 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 +62,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); }