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 396F9105D3 for ; Wed, 24 Jul 2013 06:23:17 +0000 (UTC) Received: (qmail 53840 invoked by uid 500); 24 Jul 2013 06:23:15 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 53754 invoked by uid 500); 24 Jul 2013 06:23:06 -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 Delivered-To: moderator for users@camel.apache.org Received: (qmail 39333 invoked by uid 99); 23 Jul 2013 18:58:52 -0000 X-ASF-Spam-Status: No, hits=2.0 required=5.0 tests=SPF_NEUTRAL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: error (athena.apache.org: encountered temporary error during SPF processing of domain of codeintheopen@gmail.com) Date: Tue, 23 Jul 2013 11:58:07 -0700 (PDT) From: Jothi To: users@camel.apache.org Message-ID: <1374605887981-5736155.post@n5.nabble.com> Subject: Camel File Polling Exception MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org When I read several files from a directory using the file component, should any exception occur, I can see in the log that Camel tries to read the files multiple times and constantly writes the exception to the log and eventually run into a OutOfMemory problem. How to instruct Camel to stop reading the file in case of an exception and avoid trying it multiple times? I have an OnException block defined in my route, but that does not seem to take effect in my case. Regards, Joe -- View this message in context: http://camel.465427.n5.nabble.com/Camel-File-Polling-Exception-tp5736155.html Sent from the Camel - Users mailing list archive at Nabble.com.