How can I have a bean or class/bean that starts up when my application is deployed and then runs continuously until the app is un-deployed/server stopped? Basically, I need to set up a class that will act as a scheduler, and perform routine maintenance, as well as end-user submitted jobs (a la cron) at specified times (I would prefer to have at least minute-level execution accuracy). I was thinking that basically I just needed a class that could spawn a timer thread, and check periodically if there were any new jobs to run. I know that EJB's aren't allowed/supposed to work with threads, so I assume this can't actually run as a session bean. Is there any way to do this in an EJB container, or would this need to be done externally (via cron or at or something like that--hey that rhymes!)
-Jason
