dan.baumann
May 29th, 2007, 03:04 PM
Hi,
Whenever I write flat files, I'd *like* to make sure no other process writes to the file while I do, or moves the file while I'm writing, etc.
Since Linux doesn't support mandatory file locking (well not really anyway), and I sometimes even have to write to NFS, I usually go with lock files and a protocol ("don't touch xy.dat while xy.dat.lock exists!"), and hope for the best..
Will Spring Batch ease the pain? Please?
I haven't found anything in the javadocs - what's everybody else doing?!
Cheers,
Dan
Whenever I write flat files, I'd *like* to make sure no other process writes to the file while I do, or moves the file while I'm writing, etc.
Since Linux doesn't support mandatory file locking (well not really anyway), and I sometimes even have to write to NFS, I usually go with lock files and a protocol ("don't touch xy.dat while xy.dat.lock exists!"), and hope for the best..
Will Spring Batch ease the pain? Please?
I haven't found anything in the javadocs - what's everybody else doing?!
Cheers,
Dan