I want to do this without using xml configuration. I play with Spring JMS to find out if it fits my needs. Is there any way to make synchronous reception with
JmsTemplate jmsTemplate = new JmsTemplate(connectionFactory);
jmsTemplate.receive()
so that it is equivalent to a pure JMS call:
MessageConsumer consumer = session.createDurableSubscriber(topic, "durable name");
Message message = consumer.receive();
Without the need for customization via xml?
source
share