"arshadsa" wrote : I did the same way but for me, my class not even running!
  | Could you help me how to run a scheduler which has to fire an event at 
every hour!

Edit scheduler-config.xml to say
  <mbean code="org.jboss.varia.scheduler.Scheduler"
  |          name=":service=Scheduler">
  |     <attribute name="StartAtStartup">true</attribute>
  |     <attribute 
name="SchedulableClass">your.fully.qualified.classname.GoesHere</attribute>
  |     <attribute name="SchedulableArguments">consructor param values go 
here</attribute>
  |     <attribute name="SchedulableArgumentTypes">constructor param types go 
here</attribute>
  |     <attribute name="InitialStartDate">0</attribute>
  |     <attribute name="SchedulePeriod">60000</attribute>
  |     <attribute name="InitialRepetitions">-1</attribute>
  |   </mbean>
  | 

You class must implement org.jboss.varia.scheduler.Schedulable, and have a 
constructor with the parameters you specified.

Hope this helps

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3922139#3922139

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3922139


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to