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 3261CD835 for ; Fri, 24 May 2013 14:02:28 +0000 (UTC) Received: (qmail 3930 invoked by uid 500); 24 May 2013 14:02:28 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 3222 invoked by uid 500); 24 May 2013 14:02:27 -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 3139 invoked by uid 99); 24 May 2013 14:02:23 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 May 2013 14:02:23 +0000 X-ASF-Spam-Status: No, hits=1.3 required=5.0 tests=URI_HEX X-Spam-Check-By: apache.org Received-SPF: error (nike.apache.org: local policy) Received: from [216.139.236.26] (HELO sam.nabble.com) (216.139.236.26) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 May 2013 14:02:18 +0000 Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1UfsYr-0001q3-3l for users@camel.apache.org; Fri, 24 May 2013 07:01:37 -0700 Date: Fri, 24 May 2013 07:01:37 -0700 (PDT) From: spilled_beverage To: users@camel.apache.org Message-ID: <1369404097093-5733102.post@n5.nabble.com> In-Reply-To: References: <1369325007308-5733037.post@n5.nabble.com> <1369384213881-5733072.post@n5.nabble.com> Subject: Re: ConsumerTemplate for large number of files MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org I don't actually just move the files from one folder to another - they are consumed from file (via ConsumerTemplate) but then go to a direct route and a whole host of other stuff happens - I just simplified the example in order to be as clear as possible in my post. My consumer either reads from a queue (default) or file (back-up mode) depending on the mode that we are running. When reading from a queue I need to poll hence the ConsumerTemplate. In back-up mode from file which is where I was having the issue I might be able to change things to use a route - I was just trying to keep the code common and either read from queue or file depending on the mode. Thanks for you help -- View this message in context: http://camel.465427.n5.nabble.com/ConsumerTemplate-for-large-number-of-files-tp5733037p5733102.html Sent from the Camel - Users mailing list archive at Nabble.com.