Have a look at using the While mode on the loop pattern.
http://camel.apache.org/loop.html
${body.length} <= 5
A${body}
--
View this message in context:
http://camel.465427.n5.nabble.com/Camel-How-to-dequeue-all-messages-accumulated-every-X-minutes-tp5
I am tied to xml. I couldn't get it working in. Can the same be achieved
using Spring Xml.?
--
View this message in context:
http://camel.465427.n5.nabble.com/Camel-How-to-dequeue-all-messages-accumulated-every-X-minutes-tp5783739p5784012.html
Sent from the Camel - Users mailing list archive a
I used something like this in the past for this. Note that I didn’t stop the
route in between cycles - I just stopped the loop.
return new RouteBuilder() {
String routeId = "queue-processor";
int pollTimeout = 100;
@Override
public void configure() throws Exception {
from(
I didn't look deep enough with Quartz earlier; Thanks.
I got it working with below route.
--
View this message in context:
http://camel.46
Well, if your route is called every 5 minutes surely unless you specified
otherwise the consumer should consume all the messages available on the
queue and not just once. I am not a hardcore amq guy but there should be a
way to tell it to consume until no more queues available. Usually its a
header
Quartz will only help me call dequeue route every 5 minutes. But how will
quartz help me dequeue all the message, that are accumulated for past 5
minutes?.
--
View this message in context:
http://camel.465427.n5.nabble.com/Camel-How-to-dequeue-all-messages-accumulated-every-X-minutes-tp57837
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 acti