Re: Is it efficient to run a Timer in application bean in a web project?
Posted By:
Robert_Lybarger
Posted On:
Tuesday, December 11, 2007 08:56 AM
On the surface of things, its probably doable. (It is basically just a Thread that sleeps around for a while and calls back when finished.) But I'd offer a counter-suggestion to use your operating system's concept of a "scheduled task" (commonly in UNIX parlance, a "cron job"). Rig up a requesst URL that [only] the scheduled task can call to get your periodic job done.