Re: What route returns

2018-04-25 Thread Hrvoje Djurdjevic
Hi Zoran, I replaced the line: .aggregate(constant(true),new AgrStrat()).completionTimeout(3000) with: .end() and got the expected result. Thank you very much! The route in short gets called by a rest route, it issues one mq request based on parameters received from the rest request, splits th

Re: What route returns

2018-04-25 Thread Zoran Regvart
Hi Hrvoje, there is an example[1] in the documentation that does something similar to what I think you want to do, also in the splitter docs[2] there is a note on what the splitter step returns. Here is a super simple example to illustrate this: from("timer:tick?period=1s") .setBody(c

What route returns

2018-04-24 Thread Hrvoje Djurdjevic
Hi, I notice that if I split body without referencing aggregation strategy, like this: split().body() route returns the message like it was before splitting. However, if I reference aggregation strategy in a split call like this: .split(body(),new AggrStrat()) then route returns the message after