title: How to give WSO2 time interval for consuming messages
body: <p>I need to configure wso2 to consume message one by one with time interval from activemq. Is there a way to consume just a message on given time?</p>
  
  <p>When there are many message on activemq, WSO2 consumes all messages and call backend service. Backend service does not handle all incoming message.</p>
  
  <p>I created one jms inbound endpoint and one proxy service, but I didn't find a property or a way to do.</p>
  
  <p>Inbound Endpoint:</p>
  
  <pre><code>    &lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;inboundEndpoint xmlns="http://ws.apache.org/ns/synapse"
                   name="activemqDeneme"
                   sequence="esb-QueueSQ"
                   onError="conf:/sequences/esb.faultSQ.xml"
                   protocol="jms"
                   suspend="false"&gt;
     &lt;parameters&gt;
        &lt;parameter name="interval"&gt;60000&lt;/parameter&gt;
        &lt;parameter name="sequential"&gt;false&lt;/parameter&gt;
        &lt;parameter name="coordination"&gt;true&lt;/parameter&gt;
        &lt;parameter name="java.naming.factory.initial"&gt;org.apache.activemq.jndi.ActiveMQInitialContextFactory&lt;/parameter&gt;
        &lt;parameter name="java.naming.provider.url"&gt;tcp://localhost:6052&lt;/parameter&gt;
        &lt;parameter name="transport.jms.ConnectionFactoryJNDIName"&gt;QueueConnectionFactory&lt;/parameter&gt;
        &lt;parameter name="transport.jms.ConnectionFactoryType"&gt;queue&lt;/parameter&gt;
        &lt;parameter name="transport.jms.Destination"&gt;queue_request&lt;/parameter&gt;
        &lt;parameter name="transport.jms.SessionTransacted"&gt;false&lt;/parameter&gt;
        &lt;parameter name="transport.jms.SessionAcknowledgement"&gt;AUTO_ACKNOWLEDGE&lt;/parameter&gt;
        &lt;parameter name="transport.jms.CacheLevel"&gt;3&lt;/parameter&gt;
        &lt;parameter name="transport.jms.SubscriptionDurable"&gt;false&lt;/parameter&gt;
        &lt;parameter name="transport.jms.ContentType"&gt;application/json&lt;/parameter&gt;
        &lt;parameter name="transport.jms.SharedSubscription"&gt;false&lt;/parameter&gt;
     &lt;/parameters&gt;
  &lt;/inboundEndpoint&gt;
  </code></pre>
  
  <p>Proxy Service:
  <br/></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;proxy xmlns="http://ws.apache.org/ns/synapse"
         name="Queue"
         startOnLoad="true"
         statistics="disable"
         trace="disable"
         transports="jms"&gt;
     &lt;target&gt;
        &lt;inSequence&gt;
           &lt;sequence description="call activemq" key="esb-QueueSQ"/&gt;
        &lt;/inSequence&gt;
        &lt;outSequence/&gt;
        &lt;faultSequence/&gt;
     &lt;/target&gt;
     &lt;parameter name="transport.jms.Destination"&gt;queue_request&lt;/parameter&gt;
     &lt;parameter name="transport.jms.ContentType"&gt;
        &lt;rules xmlns=""&gt;
           &lt;jmsProperty&gt;contentType&lt;/jmsProperty&gt;
           &lt;default&gt;application/json&lt;/default&gt;
        &lt;/rules&gt;
     &lt;/parameter&gt;
     &lt;description/&gt;
  &lt;/proxy&gt;
  </code></pre>