Apache Camel FTP Client Concurrency -


i'm having problem.

i have application i'm deploying twice in 2 different servers, application uses ftp component:

<from uri="ftp://..." /> 

as i'm deploying twice (like this) i'm having concurrency , files in ftp server being processed twice or throwing exceptions (filenotfoundexception) when other node process first.

is there solution this?

thx.

yes can @ setting ftp routes in master/slave mode, 1 of them active @ time. or can use shared idempotent repository "lock" can grab file if can exclusive lock repo.

its covered in camel in action book chapter 17, , chapter 12 well.

and can find details on camel website, not docs book.


Comments

Popular posts from this blog

python - Selenium remoteWebDriver (& SauceLabs) Firefox moseMoveTo action exception -

html - How to custom Bootstrap grid height? -

transpose - Maple isnt executing function but prints function term -