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

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -