Handled Exception in Recipient List sub-route

2018-09-23 Thread DariusGmail
I use RecipientList with a custom Aggregator. If there is an error in a sub-route (one of the "recipients") that is "handled" there. I want the main route to continue In the Aggregator, I was setting:    if (oldExchange == null) {    oldExchange = newExchange;   } Because of this, the Exchan

Handled Exception in RecipientList

2018-09-23 Thread DariusGmail
I use RecipientList with a custom Aggregator. If there is an error in a sub-route (one of the "recipients") that is "handled" there. I want the main route to continue In the Aggregator, I was setting:    if (oldExchange == null) {    oldExchange = newExchange;   } Because of this, the Exchan

RE: Using same queue multiple times in a circuit

2018-09-23 Thread Damien Nicolas
Thanks for your reply ; I forgot to mention that this circuit represents a workflow : when a message comes from q1, it has to follow the steps in order to avoid data inconsistency. Your proposition is good if we can do something like : from(jms:queue:q1).dynamicRouter().method(DynamicRouterTest.c

Re: Using same queue multiple times in a circuit

2018-09-23 Thread Alex Dettinger
Hi Damien, from("jms:queue:queue1") reads messages once at a time. Using from("jms:queue:q1?concurrentConsumers=2") may help but imply consequences in terms of resources, thread safety, readability... In such a situation, I would avoid reusing q1 if possible. For instance, you may be able to

Using same queue multiple times in a circuit

2018-09-23 Thread Damien Nicolas
I have several Camel routes defining a "circuit" like this (where `qx` is the queue number x, `px` is the processor number x) q1 -> p1 -> q2 -> p2 -> q1 -> p1 -> q3 -> p3 -> (...) as from("jms:queue:q1).process("p1").dynamicRouter().method(DynamicRouterTest.class, "nextStep"); from("jms