Hello,
I use spring-jms (and his dependencies) 3.0.6.RELEASE
With this configuration :
Code:
...
<bean id="messageListenerQueue" class="[MYLISTENERCLASS]"/>
<jms:listener-container connection-factory="activeMQConnectionFactory"
destination-resolver="dynamicDestinationResolver"
destination-type="queue"
concurrency="1-5" >
<jms:listener destination="queue.A" ref="messageListenerQueue"/>
</jms:listener-container>
...
I can see that :
- When starting the container, there is one listener
- The number of concurrent listeners can increase to five (when there is a lot of JMS Message to consume
But this number never decrease:
- I always see the five listeners in the ActiveMQ JMX Console
- listenerContainer.getActiveConsumerCount() is equal to five
Do i miss something so that number of listeners decrease ?
Thanks.