6 Replies Latest reply on Nov 7, 2010 3:11 PM by welle

    Preferred way to run something at start and intermittently?

    brandx

      I have a bunch of data in a central, MySQL database that is read-only so far as my application is concerned. I want to read that data into the local HSQL database at start, before users can start hitting my web pages, and update that information every 30 minutes or so.

       

      Do I just create a GenericServlet that does stuff in init() and starts a Timer going? Or is there some specific way of doing stuff like this? I noticed that there was some sort of EJB Timer functionality in JBoss 4.0 (http://www.redhat.com/docs/manuals/jboss/jboss-eap-4.2/doc/Server_Configuration_Guide/EJBs_on_JBoss-EJB_Timer_Configuration.html), but I don't see any reference for it in 5.1 (which is what I'm using).