moved socketproxy to https://wamblee.org/svn/public/socketproxy
[utils] / mythtv / monitor / src / main / java / org / wamblee / mythtv / Application.java
index 539557516fac667fb932507d563db5bd834197a8..7cc13f87d3b6b27045528aac070e5ba562118834 100644 (file)
@@ -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. 
     }
 }