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

how to set label text inside listview from code behind

c# asp.net sql asp.net-ajax

Actually i'm developing a web template with asp.net using c# and my connection string is:

In a cocos2d game, how do I allow for simultaneous input from two joysticks?

objective-c ios cocos2d-iphone

In my cocos2d game, I'm trying to have two joysticks, one for moving the player and one for shooting. However, I can't figure out how to have touches from both joysticks register at the same time.

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.