Matt Gerrans
Posts: 1153
Nickname: matt
Registered: Feb, 2002
|
|
Re: Listener class
|
Posted: Jul 20, 2002 6:21 PM
|
|
Well I guess this is general problem that doesn't really have to do with Java or the JVM. The whole OS can crash or freeze, or the computer can get turned off (by a bad pick-up line, for instance), etc.
You can have a cron job running on the machine that periodically checks that your program is doing its thing, but this assumes the machine itself is not crashed.
If the location of the folder you are referring to is on the network, you can have another machine that periodically submits a test document and waits for it to get processed; then that program can send alerts or try to restart the other.
Finally, you can implement your whole system in Jini -- in fact at JavaOne, I saw a talk by a German company that did use Jini for a document processing system. It was very robust and "document processors" (machines running a document-processing Jini service) could be dynamically added to and removed from the system at any time. They had a pretty nifty demo, too. I forget the name of the company, it may have been Procoma, or I may have that name mixed up with another...
|
|