Return-Path: X-Original-To: apmail-camel-users-archive@www.apache.org Delivered-To: apmail-camel-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0845517E8E for ; Tue, 3 Feb 2015 12:46:27 +0000 (UTC) Received: (qmail 23107 invoked by uid 500); 3 Feb 2015 12:46:21 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 23059 invoked by uid 500); 3 Feb 2015 12:46:21 -0000 Mailing-List: contact users-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@camel.apache.org Delivered-To: mailing list users@camel.apache.org Received: (qmail 23005 invoked by uid 99); 3 Feb 2015 12:46:11 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Feb 2015 12:46:11 +0000 X-ASF-Spam-Status: No, hits=0.6 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of claus.ibsen@gmail.com designates 209.85.223.172 as permitted sender) Received: from [209.85.223.172] (HELO mail-ie0-f172.google.com) (209.85.223.172) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Feb 2015 12:46:07 +0000 Received: by mail-ie0-f172.google.com with SMTP id at20so24766991iec.3 for ; Tue, 03 Feb 2015 04:45:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=DvNc2Ve7MpkcA7ZrhALmLYlD7IQiLq916/2yHqiZBmc=; b=sgT30/EzxQ5AmrFZmkY+4zrBSNAsKuqazbU2wquHK6SwQyVaEC59UXJ8Q6AE9X0wAN C/hWlj3jhKpLVOuyyw+xfmXF72ObarraFsTkI2HSAc4SosHMesXXDb2+oHhYSS1giaDT o/cK8t/06idDPaIsKL7gdIz2E5u9Qs2pzXAYHjFY1dBSaToKeTbpPEpLInWwrVZYyhGw Cao5AsNCH3SyJn5sOKL28yarH0W0a+MSdq17LOETpiUxMJGrxB0i72OL6FMiyLSW0NVB 9sg+4RdebCau0OHl5Ja1lcLv6iotAt6sEMf2vlwaOf45iewKRxPj1MHXImtK14pmHXTY AnxQ== X-Received: by 10.42.20.194 with SMTP id h2mr23561310icb.24.1422967502318; Tue, 03 Feb 2015 04:45:02 -0800 (PST) MIME-Version: 1.0 Received: by 10.64.232.232 with HTTP; Tue, 3 Feb 2015 04:44:42 -0800 (PST) In-Reply-To: <1422966615009-5762357.post@n5.nabble.com> References: <1422966615009-5762357.post@n5.nabble.com> From: Claus Ibsen Date: Tue, 3 Feb 2015 13:44:42 +0100 Message-ID: Subject: Re: Using AggregationStrategies.bean, setting in bean header value To: "users@camel.apache.org" Content-Type: text/plain; charset=UTF-8 X-Virus-Checked: Checked by ClamAV on apache.org 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 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 prevHeaders, > String nextBody, Map 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: cibsen@redhat.com Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen hawtio: http://hawt.io/ fabric8: http://fabric8.io/