3 Replies Latest reply on May 22, 2013 9:01 AM by jjfraney

    6.1 Beta: a quick way to drop timers?

    jjfraney

      Is there any quick way to drop application timers so they stop firing?  It should be easier than a reinstall of the whole server and applications, which is pretty easy, I agree; I'm just wondering if dropping the timers would be easier.

       

      I have a single EJB3 timer (persistent=false) in my application.  When it first fired, it did not gracefully handle an exception from on a database access.  I resolved the databse access problem by changing the datasource and re-enabled the applicatioin.  Now, at the scheduled firing time, the timeout handler is called about 10 times, not once.

       

      I removed and redeployed the application and it had no effect.

       

      Thanks,

      John

        • 1. Re: 6.1 Beta: a quick way to drop timers?
          sfcoy
          1. Stop the server
          2. Remove the content of $JBOSS_HOME/standalone/data/timer-service-data
          3. Restart the server
          1 of 1 people found this helpful
          • 2. Re: 6.1 Beta: a quick way to drop timers?
            wdfink

            Just to complete,

            if you look into the standalone/data/timer-service-data domain/servers/serverName/data/timer-service-data (it is the same for all servers nevertheless whether it is standalone or a domain controlled server)

            you can identify the different timers, each timer is stored in a directory named <application name>.<module name>.<Bean name> identified by a hash identifier which is also used in log messages.

             

            So you are able to remove only a part of timers

            1 of 1 people found this helpful
            • 3. Re: 6.1 Beta: a quick way to drop timers?
              jjfraney

              Wolf-Dieter and Stephen,

               

              Thanks.  That IS easy.

               

               

               

              John