camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Scisci <ferioli.mi...@gmail.com>
Subject split -> strategyRef with Exchange as constructor param
Date Tue, 08 Mar 2016 15:26:37 GMT
Hi,
I've a problem with custom AggregationStrategy and xml spring config.
I've copied the source code of UseOriginalAggregationStrategy for my custom
AggregationStrategy and add new Header.
How to configure the aggregator with the original Exchange?
In the splitter "code"  
 if (strategy == null) {
            AggregationStrategy original = new
UseOriginalAggregationStrategy(exchange, true);

this is my code

<split strategyRef="Data_Aggregator" >
 <tokenize token="\n" />
...
</split>	

and 

<bean id="Data_Aggregator"
class="Risk_Files_OICR.Data_AggregationStrategy"/>

Thanks
Mirko
		





--
View this message in context: http://camel.465427.n5.nabble.com/split-strategyRef-with-Exchange-as-constructor-param-tp5778742.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message