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)
http://www.placeoweb.com/dotclear/index.php/2007/07/18/78-jboss-421ga-dep...
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
kindly
elvisd
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4127780#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...