Take a look at the following article.
It goes over several approaches for running jobs within Java apps; including java.util.timer and Quartz.
Originally posted by Dale DeMott:
It doesn't look like this solution provides me with a way of scheduling a task that will occur within a web container. I'm looking for something that I can control by restarting my web container. This way its safe for the company.
What did you see in there that leads to to believe that this couldn't be done from within a web container?
A web container is a Java app.
You could certainly embed either solution (quartz or java.util.timer) into a context scoped object that gets instanciated via a contextListener.
There are some things to watch out for (daemon vs non-daemon threads, etc..) but these are typical issues when starting your own threads from within a webapp.
[ May 18, 2006: Message edited by: Ben Souther ]