title: Messages are getting stuck in activemq queue
body: <p>Activemq version: 5.14.3<br>
  Java version 1.7</p>
  
  <p>There are 8 consumers for one queue, messages are stuck in some of the consumers.<a href="https://i.stack.imgur.com/31RYL.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/31RYL.png" alt="screen shot"></a></p>
  
  <p>In the above image messages are stuck in dispatched queue of first 4 consumer.<br>
  Here is my spring configuration file. </p>
  
  <pre><code>       &lt;bean id="connectionFactory" class="org.apache.activemq.ActiveMQConnectionFactory"&gt;
          &lt;property name="brokerURL" value="failover:(tcp://localhost:61616,tcp://localhost:61617)?randomize=false"/&gt;
      &lt;/bean&gt;
  
      &lt;bean id="cachingFactory" class="org.springframework.jms.connection.CachingConnectionFactory"&gt;
          &lt;property name="targetConnectionFactory" ref="connectionFactory"/&gt;
      &lt;/bean&gt;
  
      &lt;bean id="jmsTemplate" class="org.springframework.jms.core.JmsTemplate"&gt;
          &lt;property name="connectionFactory" ref="connectionFactory"/&gt;
          &lt;property name="defaultDestinationName" value="queue/WebHookProcessingQueue"/&gt;
      &lt;/bean&gt;
  
      &lt;bean id="myMessageSender" class="com.omoto.jms.sender.MyMessageSender"&gt;
          &lt;property name="jmsTemplate"&gt;
              &lt;ref bean="jmsTemplate"/&gt;
          &lt;/property&gt;
      &lt;/bean&gt;
  
    &lt;bean id="responseJsonMessageListenerContainer" class="org.springframework.jms.listener.DefaultMessageListenerContainer"&gt;
          &lt;property name="connectionFactory" ref="cachingFactory"/&gt;
          &lt;property name="destinationName" value="/queue/ResponseJsonProcessingQueue"/&gt;
          &lt;property name="concurrentConsumers" value="8"/&gt;
          &lt;property name="messageListener" ref="responseJsonServiceListner"/&gt;
      &lt;/bean&gt;
  </code></pre>
  
  <p>I am new to activemq, please help me to solve this problem.</p>