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 67DB010A6A for ; Wed, 19 Jun 2013 07:29:03 +0000 (UTC) Received: (qmail 42815 invoked by uid 500); 19 Jun 2013 07:29:02 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 42694 invoked by uid 500); 19 Jun 2013 07:29:02 -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 42684 invoked by uid 99); 19 Jun 2013 07:29:02 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 Jun 2013 07:29:02 +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 (athena.apache.org: domain of claus.ibsen@gmail.com designates 209.85.223.173 as permitted sender) Received: from [209.85.223.173] (HELO mail-ie0-f173.google.com) (209.85.223.173) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 Jun 2013 07:28:58 +0000 Received: by mail-ie0-f173.google.com with SMTP id k13so12668394iea.4 for ; Wed, 19 Jun 2013 00:28:38 -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=bGLPxT8JIUGR+SAFe/+OMeAAh/BzrKAP7UAzTK9aaK8=; b=LIQKPFD0p/wWxw7eUVkLh84Ir7qNL/Whp8aEE18WlkFH3YMhEvNN6+Q8V8ZShhbHRq tRDvlq8RSlURtiylp8NfDWRSNiEm22AiPcSKOLMXKGG0S9LmiaJYE7B/mTemyFWc1r9k RWGI/ZgkR0uo886HD+vDfozvgOVWI/St1QFeVnU8dqVy57SpeLDj4TTP8iRT2GQ5I7m5 gYsNiY6lz0zfUC6nJaX2QfP90sTVBYHLTnuN63tCm+2KCdsgVuUWHmr6LfgLPjq7YCW+ 8+5gQb4Noyu4asLXYMKayMGkL6lyV8mJuF/p9s6nyH1gajpgkXlgxoD4wdlx22dFiaQB XX6g== X-Received: by 10.50.138.233 with SMTP id qt9mr9405481igb.71.1371626917925; Wed, 19 Jun 2013 00:28:37 -0700 (PDT) MIME-Version: 1.0 Received: by 10.64.86.233 with HTTP; Wed, 19 Jun 2013 00:28:17 -0700 (PDT) In-Reply-To: <1371558614508-5734296.post@n5.nabble.com> References: <1371558614508-5734296.post@n5.nabble.com> From: Claus Ibsen Date: Wed, 19 Jun 2013 09:28:17 +0200 Message-ID: Subject: Re: Consume opened excel file with ftp To: "users@camel.apache.org" Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org Hi There is a number of readLock options you can try such as rename, changed etc. See details at: http://camel.apache.org/file2.html But Christian is right, its usually better to write the file in another directory and move it when its done, or write the file using a temporary name, and rename when done etc. On Tue, Jun 18, 2013 at 2:30 PM, axelf wrote: > Hello. > > I'm sorry i'm really a newbie with Camel. > > I'm using Camel to get file in a FTP server. Here how i'm routing it: > > > > The file is a Excel file. When this file is not opened, the download and the > process work perfectly. Bug if the FTP server owner save the file in the ftp > directory (so it is still open in Excel), when trying to download the file, > an exception is thrown: > > > > Just closing the file will resolve the problem. > > Is there a solution to make it waiting to the file to be closed before > attempting to consume it? > > > > -- > View this message in context: http://camel.465427.n5.nabble.com/Consume-opened-excel-file-with-ftp-tp5734296.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- www.camelone.org: The open source integration conference. Red Hat, Inc. FuseSource is now part of Red Hat Email: cibsen@redhat.com Web: http://fusesource.com Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen