title: How to configure spring integration consumer to be event driven?
body: <p>How to configure spring integration to use message driven consumer.
  With the following configuration, my consumers are polling the messages and i can'f figure out how to make it event driven not polling..</p>
  
  <pre><code> &lt;bean id="dataQueue" class="org.apache.activemq.command.ActiveMQQueue"&gt;
          &lt;constructor-arg name="name" value="${jms.data.queue.name}" /&gt;
      &lt;/bean&gt;
  
      &lt;jms:message-driven-channel-adapter channel="dataInputChannel" destination="dataQueue"  /&gt;
      &lt;int:channel id="dataInputChannel" /&gt;    
      &lt;int:channel id="persistDataChannel" /&gt;
      &lt;int:channel id="processDataChannel" /&gt;
  
      &lt;int:recipient-list-router id="customRouter" input-channel="dataInputChannel" timeout="10000" ignore-send-failures="true" apply-sequence="true"&gt;
          &lt;int:recipient channel="persistDataChannel"/&gt;
          &lt;int:recipient channel="processDataChannel"/&gt;
      &lt;/int:recipient-list-router&gt; 
  </code></pre>