Re: A simple Aggregator use case

2013-11-26 Thread ChrisS
Thank you for your quick replies. As I was hoping, I was able to build my use case with just minor java coding in AggregationStrategy. I have just added the JIRA request here: https://issues.apache.org/jira/browse/CAMEL-7015 Best regards, CS -- View this message in context: http://camel.46

Re: A simple Aggregator use case

2013-11-22 Thread ChrisS
Many thanks for your quick response! The advice on using substring of body in correlationExpression solves my problem. Indeed I believe all I need is already in Camel so I don't have to do any coding except changing AggregationStrategy to my to enable my scenario. Other questions I have are rel

Re: A simple Aggregator use case

2013-11-21 Thread ChrisS
A simplified problem would be: How to aggregate messages with the same prefix? I could simply pass strings such as 0001:52, 0001:11, 0002:44. Is there a way to take a substring of the stream:in and use it as the header (correlationExpression)? Many thanks, CS -- View this message in context:

A simple Aggregator use case

2013-11-21 Thread ChrisS
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 second