My application is using Spring cloud and Refresh Scope is used to dynamically refresh some of the beans when the configuration is change. How can I make the same behavior applicable to the Jms message listener as well. Below is the message listener defined in Spring integration. How can I define this bean to refresh whenever there is a configuration change. In this case I am using the max concurrent consumers and auto-startup attributes to load from properties
<jms:message-driven-channel-adapter
id="processMessageDrivenChannelAdapter" send-timeout="5000"
max-messages-per-task="-1"
idle-task-execution-limit="100"
max-concurrent-consumers="${consumers}"
connection-factory="messageConnectionFactory"
destination="jmsQueue" channel="messageProcessChannel"
acknowledge="transacted" auto-startup="${autoStartUp}" />