camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <>
Subject Re: Camel File Cluster
Date Fri, 10 Jul 2015 06:23:27 GMT

I covered such a scenario in the upcoming Camel in Action 2 book in
chapter 12 with the new idempontent readLock option. That allows to
use a clustered idempotent impl to control the flow and allow
concurrent processing of files safely in a cluster.

On Thu, Jul 9, 2015 at 4:15 PM, Андрей Карев <> wrote:
> Hi!
> I'm developing app using camel and stuck with problem.
> I'm trying to build cluster with file consumer. They lokk the same
> directory on NAS and I want achieve the result when if one server fails,
> other continue processing files.
> From here:
> I've read that File consumer can lock file and no other consumer can get
> this file. But on practice my 2 file consumers on different servers don't
> let each other delete files. And for all my files .camelLock are created.
> What is the best approach in my case? Should i write some balansing app or
> it's possible to make things work out of the box?
> my route:
> from(*"file:V:**\\folder1*
> *?exclusiveReadLockStrategy=#myReadLockStrategy&readLockCheckInterval=3000"*
> ).threads(10)
>         .to(*"sftp://user@server:22/camel/outCLUSTER?password=pwd"*);

Claus Ibsen
Red Hat, Inc.
Twitter: davsclaus
Author of Camel in Action:

View raw message