2 Replies Latest reply on May 13, 2004 1:55 AM by chandrasekarang

    time delay for SchedulableExample

    Andi Jud Newbie

      When testing the SchedulableExample we notice a delay of 2 hours. I just can guess why, but do not absolutely understand why.

      We want a job to run daily at certain time. Therefore we set the SchedulePeriod to 86400000 and the InitialStartDate defines the delay to midnight.
      The settings are:

      true
      org.jboss.varia.scheduler.example.SchedulableExample
      Schedulabe Test,12345
      java.lang.String,int
      33600000
      86400000
      -1


      Further we do have the TimeZone:
      sun.util.calendar.ZoneInfo[id="Europe/Zurich",offset=3600000,dstSavings=3600000,useDaylight=true,transitions=121,...

      The reasons for the delay may be:
      Day light saving
      deviation to GMT of one hour

      Any ideas?

      Do we have to adjust the settings after each day light change manually?

        • 1. Re: time delay for SchedulableExample
          ithehorrible Newbie

          Simillar problem here, in fact I don't seems to be able to specify start date that actually works... wish there was a reliable documentation available!

          Here is a little workaround: Sets the "SchedulePeriod" for a minute (60000), so every minute perform() on your scheduler MBEAN will be called. At that point you must implement your own business logic to check system time and compare with requred execution time.

          It works for me and in fact is more reliable as the jboss scheduler itself, at least you get a full control over the logic and can dynamically change schedule/execution date if you use a datasource/db with MBEAN.

          • 2. Re: time delay for SchedulableExample
            chandrasekarang Newbie

            Hi i want to make a database connection for say every minute.
            Can u let me know how doid u used the same kind of proedure in u'r prog.