Problem with concurrent topic listeners
Hi
I have 2 listeners configured using Spring with each listener listening to the same topic message. I expect only one listener instance/thread for each of the listeners as the concurrency is set to 1 as follows. When the topic message is received as expected I see only one listener instance for Listener1 however listener2 has 2 instances processing the same message concurrently. Any ideas how I can enforce only one listener instance for listener2?
My listener configuration:
===================
<jms:listener-container client-id="ListenerOne" container-type="default" error-handler="jmsErrorHandler" destination-type="topic" connection-factory="jndiJmsConnFactory" acknowledge="auto" concurrency="1">
<jms:listener destination="${destination.topic1}" ref="listenerOne" method="onMessage" />
</jms:listener-container>
<jms:listener-container client-id="ListenerTwo" container-type="default" error-handler="jmsErrorHandler" destination-type="topic" connection-factory="jndiJmsConnFactory" acknowledge="auto" concurrency="1">
<jms:listener destination="${destination.topic1}" ref="listenerTwo" method="onMessage" />
</jms:listener-container>
Thanks
Chandru