2 Replies Latest reply on Sep 12, 2007 8:53 AM by Rafael Codina Tormo

    Scheduler Delay

    Rafael Codina Tormo Newbie


      I am currently implementing MBeans to schedule several classes. For that purpose, I am using the javax.management.timer.Timer class as timer.

      Here you can see an exemple:

      <mbean code="javax.management.timer.Timer"
       <mbean code="org.jboss.varia.scheduler.Scheduler"
       <attribute name="StartAtStartup">true</attribute>
       <attribute name="SchedulableClass">myClass</attribute>
       <attribute name="SchedulableArgumentTypes">MyTypes</attribute>
       <attribute name="SchedulableArguments">MyArgs</attribute>
       <attribute name="InitialStartDate">01/01/1970 22:00</attribute>
       <attribute name="SchedulePeriod">86400000</attribute>
       <attribute name="InitialRepetitions">-1</attribute>

      The execution of the class takes 15 minutes (it finishes at 22:15), which makes the second execution start at 22:15 the following day, whereas we need it to be started at 22:00.

      Any ideas related to this delay?
      Do you know how to avoid it?

      Thank you in advance.