Jul 26th, 2011, 02:35 PM
Is JMSTemplate.createConsumer safe for a queue?
I want to manually create a MessageConsumer using JMSTemplate for a queue.
This can be done inside a JMSTemplate.execute(SessionCallback) call, which is the only way to get JMS session as far as I can understand.
The question is: is it possible that there will be two consumers (one created manually and the other one created somewhere by JMSTemplate by default)? I want only the newly created consumer to recieve messages. It is guaranteed that only one such consumer will be present at a time.