Re: Split and Aggregate - Old Exchange is null everytime in AggregationStrategy

2014-01-23 Thread dinesh19aug
Claus, I think I figured it out how to aggregate the messages using Aggregator. I added a headerName called id and use it as my correlation id. //te:Orders/*

Re: Split and Aggregate - Old Exchange is null everytime in AggregationStrategy

2014-01-23 Thread dinesh19aug
Claus, I tried to add the Aggregation strategy in the Splitter itself and that works and I get aggregated xmls messages. However I am still looking for a way to use Aggregator2. Is there no way I can implement it using Aggregator component? BTW .. if anyone is following this post here's how I

Re: Split and Aggregate - Old Exchange is null everytime in AggregationStrategy

2014-01-23 Thread dinesh19aug
Claus, I tested the Xpath expression using a Xpath Evaluator tool and also printed out the coorelation expression results and all my messages are same. Ex- Group 1: 1 Group 2: 2 I am trying to keep things clean and hence thought that Aggregator2 would be a good way to keep t

Split and Aggregate - Old Exchange is null everytime in AggregationStrategy

2014-01-22 Thread dinesh19aug
Hi, I see that this question has been asked a number of times but none of post helped or had a conclusive solution. I am splitting a message and then aggregating it using Aggregator2. The code was throwing exception because oldExchange was always null. So to test I designed a small code. I read