3 Replies Latest reply on Dec 4, 2004 10:52 AM by starksm64

    Timer Service Configuration

    kits_quark

      Hi all,

      EjbTimerService in 2.1 says that Timers are persistent. If the server is shut down (or even crashes), timers are saved and will become active again when the server is restarted. If a timer expires while the server is down, the container will call ejbTimeout when the server is restarted.
      I need to know that what feature we are supposed to add in order to allow undeployment to treat persisted timers as entities that exist beyond the lifetime of the ejb deployment.
      I could not find any article for same. Please tell me, where i can get the documentation in details about how Jboss handles the Timer services especially when such condition occurs.
      I need to no, how to configure the timer service in Jboss4.0, so that it can handle the active timer while it goes down.
      Welcome All suggestions
      Thanks

        • 1. Re: Timer Service Configuration
          darranl

          Are you sure that is in the specification?

          All I can find is this extract: -

          Timers are persistent objects. In the event of a container crash, any single-event timers that have expired during the intervening time before container restart must cause the ejbTimeout method to be invoked upon restart. Any interval timers that have expired during the intervening time must cause the ejb-Timeout method to be invoked at least once upon restart.


          Which only talks about container crashes not clean shut downs.

          • 2. Re: Timer Service Configuration
            kits_quark

            Yes, Thats true. Check out this article

            http://www2.theserverside.com/articles/article.tss?l=MonsonHaefel-Column4

            Also, few days back i got a reply from Mr Scott from Jboss Inc. He also said the same thing. But still i didn't get the answer that how to configure the timer service with Jboss4.0.

            Regards,

            • 3. Re: Timer Service Configuration
              starksm64

              Get the source and look at the org.jboss.ejb.txtimer.EJBTimerServiceImpl class along with the other services defined in the ejb-deployer.xml found in the deploy directory.