My scenario is the following: I got responses from several processes. Each
response has contains an ID and Result. For example: 

ID=1, Result=42
ID=2, Result=77 
ID=1, Result=11
....


I would like to merge responses with the same ID and print the results.
There should be a timeout, e.g., 5 seconds and the limit or responses should
be fixed, e.g.,3. 

Ideally I would like to read the input from stream:in and get the output
from stream:out. 
So I found the camel-example-aggregate code very helpful. However, I don't
know how to modify the code to tokenize the standard input to get split
body. 

Is there a way to split an input in Header and Body such as when ID=1 and
Result=42, then Header=1 and Body=42 so I could use the ID in
correlationExpression to complete my use case?




--
View this message in context: 
http://camel.465427.n5.nabble.com/A-simple-Aggregator-use-case-tp5743633.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to