Have you looked at using quartz to trigger your flow every 5 min?
http://camel.apache.org/quartz2.html

On Thu, Jun 9, 2016 at 8:53 AM, Guls [via Camel] <
ml-node+s465427n5783739...@n5.nabble.com> wrote:

> I am new to Camel. I have a requirement, where I need to dequeue all
> messages from an activemq every 5 minutes.
>
> If I try to introduce a delayer in the route, the very first message is
> delayed by 5 minutes and subsequently my dequeuebean is called for every
> message once. Suppose if there were 20 message accumulated in 5 minutes, my
> dequeuebean is called 20 times with a gap of 5 minutes.
>
> Delaying messages on activemq using AMQ_SCHEDULED_XXX is not an options;
> as this is a third party queue
>
> I cannot predict the number of messages on the queue so I could not use
> Throttler.
>
> How can I dequeue all entities from the queue at once every X minutes.
> such that my dequeuebean gets all the message accumulated.
>
>
> ------------------------------
> If you reply to this email, your message will be added to the discussion
> below:
>
> http://camel.465427.n5.nabble.com/Camel-How-to-dequeue-all-messages-accumulated-every-X-minutes-tp5783739.html
> To start a new topic under Camel - Users, email
> ml-node+s465427n465428...@n5.nabble.com
> To unsubscribe from Camel - Users, click here
> <http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=465428&code=c291Y2lhbmNlLmVxZGFtLnJhc2h0aUBnbWFpbC5jb218NDY1NDI4fDE1MzI5MTE2NTY=>
> .
> NAML
> <http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>




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

Reply via email to