(no commit message)
[utils] / mythtv / monitor / src / main / java / org / wamblee / mythtv / Application.java
index 539557516fac667fb932507d563db5bd834197a8..36ff3077ea31053f150f3aad50dbc054c5f61858 100644 (file)
@@ -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);
         }