Return-Path: Delivered-To: apmail-camel-users-archive@www.apache.org Received: (qmail 67537 invoked from network); 16 Nov 2010 22:05:32 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 16 Nov 2010 22:05:32 -0000 Received: (qmail 65849 invoked by uid 500); 16 Nov 2010 22:06:03 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 65809 invoked by uid 500); 16 Nov 2010 22:06:02 -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 65801 invoked by uid 99); 16 Nov 2010 22:06:02 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Nov 2010 22:06:02 +0000 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=FREEMAIL_FROM,SPF_HELO_PASS,SPF_NEUTRAL,T_TO_NO_BRKTS_FREEMAIL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: 216.139.236.158 is neither permitted nor denied by domain of damianharvey+camel@gmail.com) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Nov 2010 22:05:56 +0000 Received: from sam.nabble.com ([192.168.236.26]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1PITeh-000149-4X for users@camel.apache.org; Tue, 16 Nov 2010 14:05:35 -0800 Date: Tue, 16 Nov 2010 14:05:35 -0800 (PST) From: damianharvey To: users@camel.apache.org Message-ID: <1289945135134-3268175.post@n5.nabble.com> In-Reply-To: References: <1289884125429-3266855.post@n5.nabble.com> Subject: Re: RecipientList repeating parent body MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hi Claus, Thanks for answering. I have a route/flow that calls a specific OS command to retrieve some XML (it's from a COBOL script). It is required to be called on it's own with a single Client or with a list of Clients. The main route (as per original post but with the response endpoint logic) : from("seda:start") .log("******* Started single body : ${body}") .recipientList(simple("exec:GetClaimList${header.osCmdSuffix}?useStderrOnEmptyStdout=true&args=${body.client}")) .log("******* Executed OS cmd and received: ${body}") .choice() .when(simple("${header.responseNode} == null")) .to("seda:finish") .otherwise() .recipientList(simple("${header.responseNode}")); The "parent" route called with a list of Clients: from("seda:multiStart") .setHeader("responseNode", constant("seda:multiReply")) .setHeader("UUID", BeanLanguage.bean(UUIDFactory.class, "generate")) .split(body()) .parallelProcessing() .to("seda:start"); And the route used to aggregate: from("seda:multiReply") .aggregate(header("UUID"), new ListAggregationStrategy()) .completionSize(header(Exchange.SPLIT_SIZE)) .to("seda:multiResponse"); Thanks, Damian. -- View this message in context: http://camel.465427.n5.nabble.com/RecipientList-repeating-parent-body-tp3266855p3268175.html Sent from the Camel - Users mailing list archive at Nabble.com.