You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Klaus777 <ma...@gmail.com> on 2014/02/10 20:57:56 UTC
Camel Aggrgator Misunderstanding
Hi,
I started a thread here:
http://stackoverflow.com/questions/21668716/camel-aggrgator-misunderstanding
Maybe somebody has a clue or a working example. I am trying to get an
aggregation strategy working wherein all the messages are bundled in the
body of the final message.
My route is as follows:
<route id="split">
<from uri="restlet:/split?restletMethod=POST"/>
<setHeader
headerName="correlationId"><constant>'12345'</constant></setHeader>
<split>
<tokenize token=","/>
<to uri="direct:split-process"/>
<to uri="direct:split-aggregate"/>
</split>
</route>
<route id="split-process">
<from uri="direct:split-process"/>
<transform>
<simple>${body} ${headers.CamelSplitIndex}A</simple>
</transform>
</route>
<route id="split-aggregate">
<from uri="direct:split-aggregate"/>
<aggregate parallelProcessing="true" groupExchanges="true">
<correlationExpression><simple>${headers.correlationId}</simple></correlationExpression>
<completionSize><constant>3</constant></completionSize>
<to uri="mock:results"/>
</aggregate>
</route>
So, if I post a message "a,b,c", I expect the result to be "a 0A, b 1A, c
2A".
I see in the logs that all 3 messages have been processed by the
aggregator. But the result of the RESTLEt call is empty. I have other
examples were the original message is returned.
What am I missing?
Thanks.
Klaus.
--
View this message in context: http://camel.465427.n5.nabble.com/Camel-Aggrgator-Misunderstanding-tp5747049.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Camel Aggrgator Misunderstanding
Posted by Klaus777 <ma...@gmail.com>.
Thanks for reading ;). I have answered this question in SO:
http://stackoverflow.com/questions/21668716/camel-aggrgator-misunderstanding/21691358#21691358
--
View this message in context: http://camel.465427.n5.nabble.com/Camel-Aggrgator-Misunderstanding-tp5747049p5747059.html
Sent from the Camel - Users mailing list archive at Nabble.com.