I want to do this without using the xml configuration. I am toying with Spring JMS to see if it meets my needs and if it does to adopt it for our project. Is there anyway of doing a synchronous receive using the
so that it is equivalent to the pure JMS call:
Without needing to configure through xml?
JmsTemplate jmsTemplate = new JmsTemplate(connectionFactory); jmsTemplate.receive()
MessageConsumer consumer = session.createDurableSubscriber(topic, "durable name"); Message message = consumer.receive();