2011/7/30 Brian Braun <brianbr...@gmail.com>: >> > Oh, I forgot to mention that before I cancel() the timer, I iterate on all > the tasks and cancel them. I guess that guarantees that everything has > finished.
It does not guarantee anything for the task that is currently being run. If you look at the Javadoc for TimerTask.cancel(): "(If the task is running when this call occurs, the task will run to completion, but will never run again.)" Best regards, Konstantin Kolinko --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org