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.