Have a look at using the While mode on the loop pattern. 
http://camel.apache.org/loop.html

<route>
  <from uri="direct:start"/>
  <loop doWhile="true">
    <simple>${body.length} &lt;= 5</simple>
    <to uri="mock:loop"/>
    <transform>
      <simple>A${body}</simple>
    </transform>
  </loop>
  <to uri="mock:result"/>
</route>





--
View this message in context: 
http://camel.465427.n5.nabble.com/Camel-How-to-dequeue-all-messages-accumulated-every-X-minutes-tp5783739p5784040.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to