title: Consuming message in sequence from Jms in mule flow
body: <p>I have a tibco queue where we receive messages from producers and a mule flow is consuming these messages. I have numberOfConsumers set to 20 in jms:connector. some time when the load is high my messages are received out of sequence in the flow. 
  I want my flow to receive messages in sequence without making it single threaded.</p>
  
  <p>Below is the flow with logger in the beginning of the flow:</p>
  
  <pre><code>&lt;flow name="some name" doc:name="ServiceId-8" initialState="started"&gt; 
      &lt;jms:inbound-endpoint queue="${queue1}" connector-ref="jmsconnector" doc:name="JMS"&gt; 
      &lt;logger message="Receiving Message: #[message.payload]"  category="com.xyz" level="INFO" doc:name="Logger"/&gt;
          &lt;jms:transaction action="ALWAYS_BEGIN"/&gt;  
      &lt;/jms:inbound-endpoint&gt;  
       &lt;processor....
       &lt;component....
       ........
       ........
  &lt;/flow&gt;
  </code></pre>
  
  <p><strong>Connector:</strong></p>
  
  <pre><code>&lt;jms:connector name="jmsconnector" specification="1.1" username="${name}" password="${pass}" validateConnections="true" jndiInitialFactory="factoryClass" jndiProviderUrl="${url}" connectionFactoryJndiName="GenericConnectionFactory" cacheJmsSessions="true" eagerConsumer="true" forceJndiDestinations="true" numberOfConsumers="20" persistentDelivery="true" maxRedelivery="5" doc:name="JMS"&gt; 
      &lt;spring:property name="jndiProviderProperties"&gt; 
          &lt;spring:map&gt; 
          &lt;spring:entry key="java.naming.security.principal" value="${name}"/&gt;  
          &lt;spring:entry key="java.naming.security.credentials" value="${pass}"/&gt;  
          &lt;/spring:map&gt;  
      &lt;/spring:property&gt;  
      &lt;reconnect-forever/&gt;  
  &lt;/jms:connector&gt;
  </code></pre>