Hi Yes you can change the headers, but the rule of thumb is that if the oldExchange is != null then its the old headers you must change to take affect. (old = is what you can prev).
On Tue, Feb 3, 2015 at 1:30 PM, kalber <[email protected]> wrote: > Hi, > > i'm setting up on a route a split like this : split(body(), > AggregationStrategies.bean(BusAggregator.class)). > > In BusAggregator i put a value on booth headers, but i can't find this > header on the next step e.g a log : > public String process(String prevBody, Map<String, Object> > prevHeaders, > String nextBody, Map<String, Object> nextHeaders) > throws Throwable { > String returnBody = prevBody + nextBody; > prevHeaders.put('myHeader', Boolean.FALSE); > nextHeaders.put('myHeader, Boolean.FALSE); > > .log"'${in.header.myHeader} ${out.header.myHeader}'", > > > Can i set header in aggregation bean, to check its value in next steps of > route. > > thanks > Karlheinz > > > > > > ----- > kh > -- > View this message in context: > http://camel.465427.n5.nabble.com/Using-AggregationStrategies-bean-setting-in-bean-header-value-tp5762357.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- Red Hat, Inc. Email: [email protected] Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen hawtio: http://hawt.io/ fabric8: http://fabric8.io/
