2 Replies Latest reply on Sep 29, 2012 2:00 PM by Hauke Gulich

    Timer catching up after jboss stopped

    Hauke Gulich Newbie

      Hello everyone,

       

      I read in some other posts that this behavior is correct and is expected like that.

      I annotated a methode with

       

      @Schedule (hour = "*", minute="0,10,20,30,40,50")

       

      and the method will be executed every 10 minutes. In my case this method writes some weather data into my database.

      Now I stopped the application server for 5 days and after restarting, he inserted the same data over and over again.

       

      I also read that I can not deactived this behavoir but that post is already one year old.

       

      Is there a way to deactivate this function or is there a work-a-round?

       

       

      Thanks,

      Hauke