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 C4A72D81E for ; Thu, 30 Aug 2012 06:21:03 +0000 (UTC) Received: (qmail 3086 invoked by uid 500); 30 Aug 2012 06:21:02 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 2726 invoked by uid 500); 30 Aug 2012 06:21: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 2656 invoked by uid 99); 30 Aug 2012 06:20:59 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 30 Aug 2012 06:20:59 +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 (nike.apache.org: domain of claus.ibsen@gmail.com designates 209.85.217.173 as permitted sender) Received: from [209.85.217.173] (HELO mail-lb0-f173.google.com) (209.85.217.173) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 30 Aug 2012 06:20:54 +0000 Received: by lbbgm13 with SMTP id gm13so322122lbb.32 for ; Wed, 29 Aug 2012 23:20:33 -0700 (PDT) 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=q4x61QXTyk/0Hshq0TFnBeMXiyg5gSzmBGH+xvWdRas=; b=Jv80IS4kJvmVK4hof+Y+8E3+JxgeZGFKku4a6TYxePQlUCfSTASRG9K4oSgR0y7yMF 5aGxTkJI+557Q2RnpnY9IbuDb4+c+Kjsohz5eyewm4qFi1dEXdPFUhBDRAZSzvUPh2j8 akd29uCWYDAsRhBWUQr5fJVSrMbCHXuBoxk2UMeUnEKwGEmyOycNzkc1Eh5QleeGSH0G vS+2Qo0KL4UWVwUz4tVZhzQkWVmBIb3wcnQFUyS1gdYYst6S3C/WHhxHs0Qec1hx/MYQ YJ9k7RFAzZuF+j0eyNtKawa3hI7RyxUv9H1uGsuUxeDm+MuTYuqBIgDy5k2QC4KpzNXl T3sw== Received: by 10.152.108.144 with SMTP id hk16mr2291370lab.2.1346307633653; Wed, 29 Aug 2012 23:20:33 -0700 (PDT) MIME-Version: 1.0 Received: by 10.112.7.230 with HTTP; Wed, 29 Aug 2012 23:20:13 -0700 (PDT) In-Reply-To: <1346269632320-5718325.post@n5.nabble.com> References: <1346269632320-5718325.post@n5.nabble.com> From: Claus Ibsen Date: Thu, 30 Aug 2012 08:20:13 +0200 Message-ID: Subject: Re: RoutePolicy + Split To: users@camel.apache.org Content-Type: text/plain; charset=ISO-8859-1 On Wed, Aug 29, 2012 at 9:47 PM, garrydias wrote: > Hy guys > > I wrote the route below to perform this behavior: > 1) call onExchangeBegin once > 2) call onExchangeDone /body.envelopeList.size()/ times > > routePolicyRef="loggingRoutePolicy"> > > > > ${body.envelopeList} > > > > > But the current behavior is: > 1) call onExchangeBegin once > 2) call onExchangeDone once > > If the ** is the last "to" in the route, > why onExchangeDone is not called /body.envelopeList.size()/ times? > The route policy works coarse grained on the route level, eg the incoming message on the route. It does not matter if you split / aggregate / or send out X new messages etc. It triggers on the route level (eg on the consumer of the route). > > > > -- > View this message in context: http://camel.465427.n5.nabble.com/RoutePolicy-Split-tp5718325.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- FuseSource Email: cibsen@fusesource.com Web: http://fusesource.com Twitter: davsclaus, fusenews Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen