java file system WatchService not picking up file when file is created by another java programm -
i have implemented watchservice on file system directory. there java process writes directory. when manually create file in directory, watchservice able pick when java process creates file in directory, watchservice not able pick up. i'm using below sample code write file.
com.google.common.io.files.write("test content".getbytes(), new file("/var/tmp/dir/1.txt"));
the problem mounted nfs file system. had use apache file watcher api resolve issue.
Comments
Post a Comment