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 A0EAE4C9A for ; Fri, 27 May 2011 16:54:44 +0000 (UTC) Received: (qmail 34021 invoked by uid 500); 27 May 2011 16:54:44 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 33989 invoked by uid 500); 27 May 2011 16:54:44 -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 33981 invoked by uid 99); 27 May 2011 16:54:44 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 May 2011 16:54:44 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of dwhytock@gmail.com designates 74.125.83.173 as permitted sender) Received: from [74.125.83.173] (HELO mail-pv0-f173.google.com) (74.125.83.173) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 May 2011 16:54:36 +0000 Received: by pvg3 with SMTP id 3so1000230pvg.32 for ; Fri, 27 May 2011 09:54:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=iqFfYz2qyQ5ijfRkBbOqz2q9vf9UEefBddoQ9YXxGtU=; b=aaqZObrld43PY7egrghc38kgjHVor4wabxQzHLfZLMtLYbC38vuPB6eT2c+mt+ezKa K7vkYtgFNqPE1JV8fSQd9Iz2ZUL1xI0UqBABMCQSDLioHAwML09vnwRCx2WQsdl5S0kW qi+1pTxq2+Id4GVXLE9/+mdv8y7o04rEKQZ6A= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=FEisP3PmcunRCyJ6gOLjcPDTUSRfLZJtwy0BychU3cM2A/nU2LY/DRglrLeUkuC1iK 3C51uh+me891poKP+iUQfzCMpCaxxArs1Tga5XDoKcfeGStuQRl0lmiZSH6Z/4/MGG1x fkHj3hD48Y//iz1eyV3A6pQig3Ci0O1bgBD28= MIME-Version: 1.0 Received: by 10.68.17.163 with SMTP id p3mr952485pbd.323.1306515255334; Fri, 27 May 2011 09:54:15 -0700 (PDT) Received: by 10.68.50.131 with HTTP; Fri, 27 May 2011 09:54:15 -0700 (PDT) In-Reply-To: References: Date: Fri, 27 May 2011 12:54:15 -0400 Message-ID: Subject: Re: Loop usage From: Donald Whytock To: users@camel.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org How about using Exchange.copy() to pass a copy of the exchange to the downstream processor, so that the original exchange doesn't get changed? Don On Fri, May 27, 2011 at 12:36 PM, Greg McFall wrote: > Hi, > > The Camel documentation contains the following statement about the Loop > pattern: > > The Loop allows to process a message a number of times and possibly process > them in a different way. > > This seems to imply that the same input message will be processed by the > downstream pipeline with each subsequent iteration. > But my experience shows that the output from one iteration of the loop is > used as input to the next iteration. > > Is this the expected behavior? > That seems like a strange way to define a loop. > Is there any way to coerce the Loop to operate on the same exact input > message for each iteration? > > Cheers, > Greg McFall >