2 Replies Latest reply on Dec 1, 2006 5:21 AM by dkalna

    TimerBean

      Hello everybody,

      is there any way to start TimerBean automatically after deployment?

      Thanks a lot
      Dalibor

        • 1. Re: TimerBean
          klejs

          Hi,

          The most simple way to do this, if you have a webapp with your deployment, is to use a javax.servlet.ServletContextListener and in the contextInitialized() method intialize your TimerBean.

          The Timer Service is very limited in many aspects and there was no changes for the Timer Service in EJB3. You should think of using something like Quartz instead which is more configurable and is easier to use than the Timer Service.

          /klejs

          • 2. Re: TimerBean

            ok, I try it that way...
            thanks a lot
            Dalibor