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 25C0DDE77 for ; Thu, 19 Jul 2012 11:11:54 +0000 (UTC) Received: (qmail 10452 invoked by uid 500); 19 Jul 2012 11:11:53 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 10351 invoked by uid 500); 19 Jul 2012 11:11:53 -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 10341 invoked by uid 99); 19 Jul 2012 11:11:53 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Jul 2012 11:11:52 +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.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, 19 Jul 2012 11:11:48 +0000 Received: by lbok6 with SMTP id k6so4339672lbo.32 for ; Thu, 19 Jul 2012 04:11:27 -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=zd6KM17YcN9Xtq5CCd7d69JZNfK+DBW6PaFy4KEks58=; b=gZixKPC0Cl23dJuRClHFLVZXdYHEWn6i9mzzT6do0PNzYB8SSFv+M+v2hqikXBZulY rjhCqdWNe9OD2KAt/c8ldN0JM6OwNY3vLPV0cDtTMzLSdHOe3mtoAXNgji7tp9Oz1b+7 oDIclD7xYr2TgNnSU2FTR7aGikUbLyBepiJAO0wtcBUlYvG7tGjvkbYfsluuabf85DI5 taZx4dXKfz6Lf5OSfBMoMmUTL5tMrRheOofBzLX2wUQ+sj7kAsbLAgtZ1j1utpv8uDe9 7JKpG8M/MAcAdI4rsn1ACZdWR30yI3y8cjUSKnLFmqYzxyQAcA6wv4ZpogJMqu5JLfaN 1zJA== Received: by 10.152.146.101 with SMTP id tb5mr1736415lab.0.1342696287463; Thu, 19 Jul 2012 04:11:27 -0700 (PDT) MIME-Version: 1.0 Received: by 10.112.49.73 with HTTP; Thu, 19 Jul 2012 04:11:07 -0700 (PDT) In-Reply-To: <1342682077063-5716234.post@n5.nabble.com> References: <1342682077063-5716234.post@n5.nabble.com> From: Claus Ibsen Date: Thu, 19 Jul 2012 13:11:07 +0200 Message-ID: Subject: Re: process files in order To: users@camel.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org On Thu, Jul 19, 2012 at 9:14 AM, pvunckx wrote: > Hi, > > What is the best practice for processing 4 files one after another? The > second may only start when the first is completely processed. > Ordering the files is not an issue, this is working. > This is the default behavior of the file consumer. And if your connect routes with the direct component then its synchronous as well. So it should work processing in sequence. You must do something in your routes that goes async / concurrent. What do you do in your routes? > For the moment I have 5 routes: > - One for the file poller (with sorter) > - 4 separate routes (direct) for each file (each has their own logic). > > When I run this, the files aren't processed in the right sequence... > > I was thinking in the direction of a wait-while (expression) thing but that > doesn't exist (I think).... > > Someone has an idea how to handle this? > > Thx > Pieter > > -- > View this message in context: http://camel.465427.n5.nabble.com/process-files-in-order-tp5716234.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