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;
/*
<sun-web-app>
- <!-- resource-ref>
+ <resource-ref>
<res-ref-name>MythtvConnectionFactory</res-ref-name>
<jndi-name>jms/MythtvConnectionFactory</jndi-name>
</resource-ref>
- <resource-ref>
- <res-ref-name>MythtvTimer</res-ref-name>
+
+ <message-destination-ref>
+ <message-destination-ref-name>MythtvTimer</message-destination-ref-name>
<jndi-name>jms/MythtvTimer</jndi-name>
- </resource-ref -->
+ </message-destination-ref>
</sun-web-app>
\ No newline at end of file