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 1DB283EB5 for ; Fri, 6 May 2011 21:51:20 +0000 (UTC) Received: (qmail 56694 invoked by uid 500); 6 May 2011 21:51:19 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 56651 invoked by uid 500); 6 May 2011 21:51:19 -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 56643 invoked by uid 99); 6 May 2011 21:51:19 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 May 2011 21:51:19 +0000 X-ASF-Spam-Status: No, hits=2.0 required=5.0 tests=FREEMAIL_FROM,RFC_ABUSE_POST,SPF_NEUTRAL,T_TO_NO_BRKTS_FREEMAIL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: 216.139.236.26 is neither permitted nor denied by domain of unmarshall@gmail.com) Received: from [216.139.236.26] (HELO sam.nabble.com) (216.139.236.26) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 May 2011 21:51:14 +0000 Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.69) (envelope-from ) id 1QISvF-00011A-QK for users@camel.apache.org; Fri, 06 May 2011 14:50:53 -0700 Date: Fri, 6 May 2011 14:50:53 -0700 (PDT) From: unmarshall To: users@camel.apache.org Message-ID: <1304718653808-4377250.post@n5.nabble.com> In-Reply-To: <1304713297707-4377043.post@n5.nabble.com> References: <1304713297707-4377043.post@n5.nabble.com> Subject: Re: file processing loop on failure MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi Shailesh, There was a ticket created for the same issue and it was solved. Refer: https://issues.apache.org/jira/browse/CAMEL-2879 Comments there will help you resolve your issue. Cheers! madhav shailesh wrote: > > I see the when split fails because of the XPathExpressionException error > the file keep trying in Loop. > I would like to move the file to /failed folder if the spliting fails. > > > > XPathBuilder xPathBuilder = XPathBuilder.xpath("/foo") > > from("file://c:/target/inventory/inbox2?moveFailed=/failed") > .split(xPathBuilder) > .to("jms:testQ1"); > > > Any suggestion. > > > Thanks, > -- View this message in context: http://camel.465427.n5.nabble.com/file-processing-loop-on-failure-tp4377043p4377250.html Sent from the Camel - Users mailing list archive at Nabble.com.