camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ErwinK <>
Subject Custom AggregationStrategy needs specific headers
Date Fri, 12 Jun 2009 10:07:49 GMT


I am using Camel 1.6.1. With the following route:

.setBody(constant("select * from table"))
.splitter(body(List.class), new MyAggregationStrategy())
.to("some default component uri that doesn't forward headers")

The aggregationstrategy needs org.apache.camel.SplitIndex and
org.apache.camel.SplitSize but you lose them during the route in the
splitter part.

I can work around the problem by saving the headers in an exchange property
as first step and restore them just before the aggregation, but shouldn't
the splitter itself store necessary information in a property?

View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message