camel-users mailing list archives

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

Hello,

I am using Camel 1.6.1. With the following route:

from("timer://timer?period=1000")
.setBody(constant("select * from table"))
.to("jdbc:db")
.splitter(body(List.class), new MyAggregationStrategy())
.to("some default component uri that doesn't forward headers")
.end()
.to("log:log")

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?

Regards,
Erwin
-- 
View this message in context: http://www.nabble.com/Custom-AggregationStrategy-needs-specific-headers-tp23996092p23996092.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Mime
View raw message