I don't know if this is the best solution, but the way I do it is to instantiate the bean using a servlet. This way I can also allow dynamic configuration (stopping, starting, modifying the interval of, etc.) the timer through the same servlet. In the web.xml, include the load-on-startup tag with a 1.
Sounds good. Thanks! I'll try that.