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 6CE2510A6C for ; Mon, 28 Oct 2013 07:17:15 +0000 (UTC) Received: (qmail 22404 invoked by uid 500); 28 Oct 2013 07:17:13 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 22186 invoked by uid 500); 28 Oct 2013 07:17:13 -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 21203 invoked by uid 99); 28 Oct 2013 07:17:11 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 28 Oct 2013 07:17:11 +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.223.169 as permitted sender) Received: from [209.85.223.169] (HELO mail-ie0-f169.google.com) (209.85.223.169) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 28 Oct 2013 07:17:06 +0000 Received: by mail-ie0-f169.google.com with SMTP id ar20so10650019iec.14 for ; Mon, 28 Oct 2013 00:16:45 -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=ocHhla+0ATVLWW2wc+7DZfz5eA04TYsfw5eFCDObl4w=; b=0p2jT5k2mv9yN1kEaBD7Ai8BzKOD80UcAYBVNSxL8JYAGYnqKmMQtbJ3EBGI213uUD LIYYy3Ic1rtjdlFWBVWa+5VWVGrzNDQIhTSvywFoRiBhBK5s4bpbqzOZPO5CGj8BbJOJ DISofjimKlPl26iTWGaoTIRzvituarIVFy2+lkrn2NcU6tkO7U1L9qN6p3eTeLI6bbRc nZepVuATAglYu4BRicS+8OMHMzYvXnuCNqL8hDGWV6iJ18Mel2CTYFa47uiPGPHnp5aF /MxAgcrxriSshj9ROvfh3jQQcgdgYyx+SR/sLQGT1/MWzpHDpRo406S226LBerTa8QcZ cCSA== X-Received: by 10.50.136.200 with SMTP id qc8mr7303535igb.52.1382944605426; Mon, 28 Oct 2013 00:16:45 -0700 (PDT) MIME-Version: 1.0 Received: by 10.64.168.38 with HTTP; Mon, 28 Oct 2013 00:16:25 -0700 (PDT) In-Reply-To: <1382940662764-5742284.post@n5.nabble.com> References: <1382940662764-5742284.post@n5.nabble.com> From: Claus Ibsen Date: Mon, 28 Oct 2013 08:16:25 +0100 Message-ID: Subject: Re: Camel File component should not rename file when an exception is thrown To: "users@camel.apache.org" Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org Hi You need to set shareUnitOfWork=true. See details at http://camel.apache.org/splitter On Mon, Oct 28, 2013 at 7:11 AM, talk2patel86 wrote: > Hi There, > I have camel route configured as below: > > > > uri="file:files/merchant?antInclude={{include-file-type}}&initialDelay=1000&delay=1000&move=${file:name.noext}.processed" > /> > > > > > > > > > > With current configuration the file gets renamed even if an exception is > thrown while processing the file. > What i want is, the file should only be rename if no exception is thrown > while the file. > > I an using camel 2.12. > > > > > -- > View this message in context: http://camel.465427.n5.nabble.com/Camel-File-component-should-not-rename-file-when-an-exception-is-thrown-tp5742284.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