0 Replies Latest reply on Aug 13, 2005 4:42 PM by robert lazarski

    Auto launch ejb.Timer without webapp?

    robert lazarski Newbie

      Hi all,

      I'd like to perform a DB task every hour or so in an EJB container.
      However, I can't seem to figure out a simple way to have the timer load
      on startup as I can't do a simple load-on-startup servlet or
      ServletContextlistener. The app is contained only in a jar, deployed in
      JBoss that just has web services exposed as Stateful Beans.

      My idea is to do it via a static initializer, but I'm wondering if
      there is a better way?

      I'm running 4.0.1sp1 on linux.

      Any ideas?