title: Spring JMS MQListener not consuming messages automatically
body: <p>I have a Spring boot JMS application used for consuming and sending messages to IBM mQ. We have around 10 IBM MQ configured for this application and I'm using SimpleMessageListenerContainer with CachingConnectionFactory to avoid multiple connection start/close for the application. Message sending is happening properly here, wherein we are seeing issues with the consumption. Messages are not getting consumed by the application automatically. We have to do a application restart each time. After some research, i got to see from some blogs that Caching is not a good option for Message Consumption if that queue is idle for long time.</p>
  
  <p>In my scenario, this is true since the message flow to this particular queue is in every 24 hrs. So my application is keeping the session open for long time and making the connection from the cache. If no messages are coming to the queue, firewall time out will happen. Since the broker doesnt know about that it will reuse the same connection.</p>
  
  <p>So i guess I need to remove the cachedconnectionfactory and use the SimpleMessageListenerContainer directly. Any suggestions on this ? Thank you.</p>