Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 978C4200C6C for ; Fri, 5 May 2017 21:28:30 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 9632B160BAF; Fri, 5 May 2017 19:28:30 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id DD045160BAA for ; Fri, 5 May 2017 21:28:29 +0200 (CEST) Received: (qmail 63360 invoked by uid 500); 5 May 2017 19:28:28 -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 63348 invoked by uid 99); 5 May 2017 19:28:28 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 May 2017 19:28:28 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 1CCBC1A7B11 for ; Fri, 5 May 2017 19:28:28 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.992 X-Spam-Level: X-Spam-Status: No, score=0.992 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001, URI_HEX=1.313] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id DmNo9xjo7iif for ; Fri, 5 May 2017 19:28:27 +0000 (UTC) Received: from mail-qt0-f181.google.com (mail-qt0-f181.google.com [209.85.216.181]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 7FEFA5F569 for ; Fri, 5 May 2017 19:28:26 +0000 (UTC) Received: by mail-qt0-f181.google.com with SMTP id m36so13170313qtb.0 for ; Fri, 05 May 2017 12:28:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=l41tBugbzES4zu68OCHMvXdaH3WXih6CnG5meEz0S3s=; b=jM0rPmQhiP2y6sNkirThHgxYAGenoOvDUO4EhCU4epdZcnEJWorgvsYxk7G9FNQHyI G3D0KtIvFoMJ/w+IsWgFjUIqOPo3R4OCQJmMaLVqCJdq+z23Gzwd9L8i39IEufp8K2sZ d/Hb8VSbI4TtmdmuHZZid7IWDou4MtD+HIo7X9ZV7CLvVFhQ+HzdwTEFvnK2xaqHhIr7 Q8RuBVJ+vzMLdrM845HKK2x04H5HMRw7HVHZYFTcu8uqojcfsgOUHn403RGrQFf7m0jV X2Pc8Cl28OAQZLBgNDmtphU+jFqriBqmgHmN3BEcv1NsfRJcoXPm8nxmRUGx1tcVZFEo IbcQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=l41tBugbzES4zu68OCHMvXdaH3WXih6CnG5meEz0S3s=; b=WRmNoHGwyujuxH+4x6SvscrFci4eaCXJDy4yBjsqG/F2O0tgeUb2SNHZm27bor5518 g7qpFRqIONT4IV1qnZwHwuPmniebhbYuJcit9K7hKhYB9Ws7j6NMi+aR/+IYQ6ExubZ2 hnfnAS+6FEqd2I3r2p2+3vxOmJIgH8vPrtaiGdO4O5DkRIL2Ihsfz3fm2nGEd1LmJyzg e0CMOqXhza2PSsymLp5ND/IUwg+k73x9alMfNXHLuGI91MNJ4vyntj94xa7Vv8KwKH+j yI2Lan/nzVldR3yIJYJVb5a0vijgC3aJj9UwKPjFXrlxe3g5x990Q4nlfztk9LH9kCex 7TSA== X-Gm-Message-State: AN3rC/611n0koqJXCQUxpNrCMB8UFTEHvW3T0fyx/w2uF8P7FxZwR8um w3PMLjCb7Ki/+9c8FMLLnEEw1wsd04Pf X-Received: by 10.200.4.140 with SMTP id s12mr46173467qtg.35.1494012505436; Fri, 05 May 2017 12:28:25 -0700 (PDT) MIME-Version: 1.0 Received: by 10.200.50.39 with HTTP; Fri, 5 May 2017 12:28:05 -0700 (PDT) In-Reply-To: <1493979320350-5798696.post@n5.nabble.com> References: <1493979320350-5798696.post@n5.nabble.com> From: Claus Ibsen Date: Fri, 5 May 2017 15:28:05 -0400 Message-ID: Subject: Re: File readlock on multiple files in a directory To: "users@camel.apache.org" Content-Type: text/plain; charset=UTF-8 archived-at: Fri, 05 May 2017 19:28:30 -0000 No this is not yet supported. I think there is a JIRA about that changed readlock to allow to do this holistically over a group of files. You can build you own read lock strategy also. On Fri, May 5, 2017 at 6:15 AM, ganga_camel wrote: > Hi, > > I have a scenario where I need to sftp files from a directory to which files > are being written by another route. I am using file readlock=changed on that > directory. However, the readlock is taken on one file and not all the files. > Hence, when the file component gets the readlock on any one of the files in > the directory, it triggers the sftp component which results in the partial > file transfer of the files to the remote server. > > Is there a possibility in camel where we can obtain the readlock on the > directory and once the writing to all the files on that directory is > complete the next step is triggered. > > Thanks, > Ganga > > > > -- > View this message in context: http://camel.465427.n5.nabble.com/File-readlock-on-multiple-files-in-a-directory-tp5798696.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2