E
Elliott
Hi all:
Perhaps someone can help a relatively new Java programmer. I am
writing an application that sits in a network and processes files when
they are written to a designated directory. I am wondering if there
is some elegant way to do this. I realize I can create a loop in
which the process sleeps for say, five seconds and then checks to see
if a directory has a file in it and then performs an action
appropriately. However, I wonder if there is a better way to do
this. If there is some way that a file being written to a designated
directory triggers some kind of event that wakes my program up to
begin processing, that would be better, but how does one do this?
Any help would be greatly appreciated.
Thanks,
Elliott
Perhaps someone can help a relatively new Java programmer. I am
writing an application that sits in a network and processes files when
they are written to a designated directory. I am wondering if there
is some elegant way to do this. I realize I can create a loop in
which the process sleeps for say, five seconds and then checks to see
if a directory has a file in it and then performs an action
appropriately. However, I wonder if there is a better way to do
this. If there is some way that a file being written to a designated
directory triggers some kind of event that wakes my program up to
begin processing, that would be better, but how does one do this?
Any help would be greatly appreciated.
Thanks,
Elliott