camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: File readlock on multiple files in a directory
Date Fri, 05 May 2017 19:28:05 GMT
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 <ganga.db@gmail.com> 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

Mime
View raw message