title: Websphere 7 + Websphere MQ 7.X + Spring Integration + JMS - Message Listener stops reading messages from Queue
body: <p>We are reading messages from Websphere MQ using JMS and Spring Integration.</p>
  
  <pre><code>&lt;task:executor id="demoMessageReceiverChannelTE" pool-size="1-3" queue-capacity="5" keep-alive="1" rejection-policy="CALLER_RUNS"/&gt;
  
  &lt;int:channel id="demoMessageReceiverChannel"&gt;
      &lt;int:dispatcher task-executor="demoMessageReceiverChannelTE"/&gt;
      &lt;int:interceptors&gt;
          &lt;int:ref bean="messageReceiverInterceptor" /&gt;
      &lt;/int:interceptors&gt;
  &lt;/int:channel&gt;
  
  &lt;jms:message-driven-channel-adapter
  id="demoMesssageReceiverAdapter" channel="demoMessageReceiverChannel"
  connection-factory="srcJmsConnectionFactory" destination="srcReceiverQueue"
  error-channel="errorChannel" message-converter="demoIncomingMessageConverter"
  transaction-manager="srcJmsTransactionManager" send-timeout="65000"
  header-mapper="demoJmsHeaders" /&gt;
  </code></pre>
  
  <p>There is another system, which put message on this Queue. (Out of scope for us)</p>
  
  <p>We can have 2000 messages at a time on queue to be read.</p>
  
  <p>Sometimes, Message Listener stops reading messages from Queue, when I tried to troubleshoot this issue, it gives reason that there are some un-commited message on queue, which listener trying to read and won't be able to process further and hangs there itself.</p>
  
  <p>As when delete that message manually from queue, it processes other message perfectly.</p>
  
  <p>So how to skip such uncommitted messages, so that system can continue with next message ?</p>