|
"When to shut down" a daemon job is always a trick. It depends on the application, I think. Are you planning on having your entire application reside in a single JVM, and have the command processor slaved to that JVM? Is there a clean shutdown for the Java application? Do you need to handle situations where the JVM is brought down dirty? Are there situations where you might need more than one server (for instance, long-running command and high-priority short commands)? All of these types of questions come into play when you're designing your shutdown logic. However, the basic idea of a timeout on the read combined with an exclusive lock on an object are a good general combination, no matter what the specifics are. Joe
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.