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 C32E111263 for ; Fri, 4 Jul 2014 07:31:42 +0000 (UTC) Received: (qmail 57463 invoked by uid 500); 4 Jul 2014 07:31:42 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 57412 invoked by uid 500); 4 Jul 2014 07:31:42 -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 57396 invoked by uid 99); 4 Jul 2014 07:31:41 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Jul 2014 07:31:41 +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.213.171 as permitted sender) Received: from [209.85.213.171] (HELO mail-ig0-f171.google.com) (209.85.213.171) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Jul 2014 07:31:40 +0000 Received: by mail-ig0-f171.google.com with SMTP id h18so8500277igc.10 for ; Fri, 04 Jul 2014 00:31:15 -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=c/iusyw0OkzW783CI5mFFR3s66BbmHVYGNQ+9qFuFfg=; b=OFfO3Bzaq/SitHjqAv+n/TyHSXGPjOj9AwOvoQTgGYg7L1eFBHwE5t213KGBi6VN1I 4QFFgKmHU7RyZ1jeRkKUmYdpd0lIxcVA4kA/YB/TxyzuWIaHCHPCzHVIQ8eH/jIMZBoa QC+LQe2R39RnkVO1MHDHEkTLkEEdnTdzATZyj6IZfChHX8GL9b/jKUtau0+zY2c+g20W n81EClTzfIYQdGuDaBUGpXwJlvyAqMbpANfjC/87PIdjOJQzh031HI46IphAK9j1Spf3 w8YJ8A5+v0bBcsNtSGcnfe4y+B2JlqyOUbZ7/2ePZJ3e3IbS7BP00LkCtS5J6z2aN5W9 kANA== X-Received: by 10.50.152.98 with SMTP id ux2mr62192475igb.27.1404459075894; Fri, 04 Jul 2014 00:31:15 -0700 (PDT) MIME-Version: 1.0 Received: by 10.64.11.67 with HTTP; Fri, 4 Jul 2014 00:30:55 -0700 (PDT) In-Reply-To: <1404401126680-5753293.post@n5.nabble.com> References: <1404401126680-5753293.post@n5.nabble.com> From: Claus Ibsen Date: Fri, 4 Jul 2014 09:30:55 +0200 Message-ID: Subject: Re: How to call a bean after all files has been processed? To: "users@camel.apache.org" Content-Type: text/plain; charset=UTF-8 X-Virus-Checked: Checked by ClamAV on apache.org Hi See about the batch completed property you can use to know when the batch of files is complete http://camel.apache.org/batch-consumer.html And this has been debated before on these forums so you can make search and find that. On Thu, Jul 3, 2014 at 5:25 PM, zzkozak wrote: > I wrote the following route and expected that the bean 'teaserService' should > be called only one time, at the end of processing of all files, but ... it's > called after processing of each file: > > How to achieve such a behavior? > > Thanks > > > > -- > View this message in context: http://camel.465427.n5.nabble.com/How-to-call-a-bean-after-all-files-has-been-processed-tp5753293.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/