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


    Dalibor Kalna Newbie

      Hello everybody,

      is there any way to start TimerBean automatically after deployment?

      Thanks a lot

        • 1. Re: TimerBean
          K A Newbie


          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.


          • 2. Re: TimerBean
            Dalibor Kalna Newbie

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