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:
http://stackoverflow.com/questions/26066012/clustering-in-apache-camel-multiple-jvms-same-camelcontext

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"*);

Reply via email to