Monday, December 8, 2003 06:45 AM
My naive thoughts:
Maybe consider a cron job, for periodic scheduled execution? depending on the interval, since starting up a new JVM incurs considerable overhead.
Or, to keep the same JVM running all along, perhaps starting something as a "daemon" (Unix) or "service" (Windows), so it runs detached from the beginning?
In fact maybe you could just run Tomcat, and write a servlet, to load-on-startup, which would just start up your background thread? then you could use Tomcat to manage the JVM container, instead of writing your own wrapper?
Otherwise, you could just background an ordinary application, right, keep it running in the background?