Avoid same file of File server been picked up from different services

I have a file server and two integration servers. Each integration server has the same task. It will pick up file from "incoming" folder of the file server, and then will process it. This service use Spring Integration. Two servers' services work at the same time, which would ensure that even one integration server fails, the other will keep working. Because these two are independent from each other, my question is how can I make sure that both services don't pick up the same file from file server Also master-slave approach is not what I am looking for.


Looks like you can use a file locker. Some thing like this

 <file:inbound-channel-adapter id="filesIn"
       directory="file:${input.directory}" prevent-duplicates="true">

Check this documentation

Need Your Help

Viewing the code of a Python function

python introspection

Let's say I'm working in the Python shell and I'm given a function f. How can I access the string containing its source code? (From the shell, not by manually opening the code file.)

Oracle 11g and Oracle 10g Install together?

oracle10g oracle11g

I have installed Oracle 10g and now want to install 11g also...How can I do it?.. I know that ORACLE_HOME environment variable need to be configured for each "oracle"..

check out a “pull request” on Git to review/test a PR

git github git-pull pull-request

We have a repo that I have added to my local fork as Upstream. Someone sent a PR and I want to review it. Although I'm able to review code on Github by their Diff tool but I want to have it on my l...

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.