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. 




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

Reply via email to