I am using camel-jcifs and reading a file. Every thing works fine. The application will be deployed on four server instance. Now my query is how can I make sure only one server picks up the file at a time?
<from id="_from_pop3" uri="smb://myurl?fileName=filename&preMove=inprogress&move=processed"/>
I got suggestion to use infinispan and write to shared cache that the file in progress.
Can someone please suggest other possible solutions?
Regards, Sarada.