DefaultJmsListenerContainerFactory / DefaultMessageListenerContainer Dynamic Scaling: How does it work?
<p>I am trying to get my Spring 4 JMS application to dynamically scale down after a lot of messages were processed. I currently have a concurrency of 1-3 consumers and I am able to see a successful scaling up toward the maximum consumers, but once the consumers have been created, they don't go away. They stay there in a WAIT state. I would like to know if there is a setting or configuration that enables the consumers to shutdown after the load subsides. Does anyone know?</p>

<p>Thanks,</p>

<p>Juan</p>