From: erik Date: Thu, 13 Mar 2008 22:48:26 +0000 (+0000) Subject: Message linking is now working. X-Git-Tag: wamblee-utils-0.2@603~245 X-Git-Url: http://wamblee.org/gitweb/?a=commitdiff_plain;h=1cbccccf56f65bba238060cdaa0d21f53568f881;p=utils Message linking is now working. --- 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 bdf1cb03..36ff3077 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 @@ -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); } diff --git a/trunk/mythtv/timer/src/main/java/org/wamblee/timer/TimerBean.java b/trunk/mythtv/timer/src/main/java/org/wamblee/timer/TimerBean.java index ca910301..7281bdbe 100644 --- a/trunk/mythtv/timer/src/main/java/org/wamblee/timer/TimerBean.java +++ b/trunk/mythtv/timer/src/main/java/org/wamblee/timer/TimerBean.java @@ -39,7 +39,7 @@ import org.wamblee.io.DirectoryMonitor; /** * */ -@MessageDriven(name = "MythtvTimer") +@MessageDriven(name = "TimerBean") // Spring's JTA transaction manager does not work with container managed transactions // because it uses the UserTransaction object which glassfish forbids. @TransactionManagement(TransactionManagementType.BEAN) @@ -67,7 +67,7 @@ public class TimerBean implements MessageListener { @Timeout private void timeout(Timer aTimer) { - LOG.debug("Timer expired!!!"); + LOG.info("Timer expired!!!"); try { DirectoryMonitor monitor = BeanKernel.getBeanFactory().find( DirectoryMonitor.class); diff --git a/trunk/mythtv/timer/src/main/resources/META-INF/ejb-jar.xml b/trunk/mythtv/timer/src/main/resources/META-INF/ejb-jar.xml index 84e66f9f..09dda4ce 100644 --- a/trunk/mythtv/timer/src/main/resources/META-INF/ejb-jar.xml +++ b/trunk/mythtv/timer/src/main/resources/META-INF/ejb-jar.xml @@ -3,22 +3,19 @@ xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd" version="3.0"> - - - - - \ No newline at end of file + + diff --git a/trunk/mythtv/timer/src/main/resources/META-INF/sun-ejb-jar.xml b/trunk/mythtv/timer/src/main/resources/META-INF/sun-ejb-jar.xml index b08fa26f..b0f373b5 100644 --- a/trunk/mythtv/timer/src/main/resources/META-INF/sun-ejb-jar.xml +++ b/trunk/mythtv/timer/src/main/resources/META-INF/sun-ejb-jar.xml @@ -4,9 +4,14 @@ - MythtvTimer + TimerBean jms/MythtvTimer + + InternalBootstrapQueue + jms/MythtvTimer + + - + \ No newline at end of file diff --git a/trunk/mythtv/war/src/webapp/WEB-INF/sun-web.xml b/trunk/mythtv/war/src/webapp/WEB-INF/sun-web.xml index 606cf61e..fc82b5d6 100644 --- a/trunk/mythtv/war/src/webapp/WEB-INF/sun-web.xml +++ b/trunk/mythtv/war/src/webapp/WEB-INF/sun-web.xml @@ -9,11 +9,5 @@ Servlet 2.5//EN" "http://www.sun.com/software/appserver/dtds/sun-web-app_2_5-0.d MythtvConnectionFactory jms/MythtvConnectionFactory - - - - MythtvTimer - jms/MythtvTimer - - + \ No newline at end of file diff --git a/trunk/mythtv/war/src/webapp/WEB-INF/web.xml b/trunk/mythtv/war/src/webapp/WEB-INF/web.xml index 8d08eb7c..efd70d09 100644 --- a/trunk/mythtv/war/src/webapp/WEB-INF/web.xml +++ b/trunk/mythtv/war/src/webapp/WEB-INF/web.xml @@ -13,18 +13,18 @@ persistence/mythtv - + - + InternalBootstrapQueue +