1 Reply Latest reply on Feb 8, 2008 7:30 AM by Elvis D,


    Elvis D, Novice

      don't if can help you, i have configured a user service to run every day at 8:00 AM.
      you should implement a schedulable class and define the scheduler in scheduler-service.xml.
      Your schedulable class then is called in the given interval.

      I have used this link to learn how to do it... (sorry it s in french)

      To run a task every day at given period just adapt the scheduler config with values as:

       <attribute name="StartAtStartup">true</attribute>
       <attribute name="SchedulableClass">org.pagckage.MyClass</attribute>
       <attribute name="SchedulableArguments">500</attribute>
       <attribute name="SchedulableArgumentTypes">double</attribute>
       <attribute name="FixedRate">true</attribute>
       <attribute name="DateFormat">dd/MM/yy HH:mm</attribute>
       <attribute name="InitialStartDate">01/01/1970 08:00</attribute>
       <attribute name="SchedulePeriod">86400000</attribute>
       <attribute name="InitialRepetitions">-1</attribute>

      this configurations calls the perform() method in your org.package.MyClass every day at 8:00 (note the InitialStartDate and SchedulePeriod)

      Hope this helps