/**
*
+ *
+ * @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;
/*
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);
}