Thanks but it didnt work :/ (I have tested it with 5000 ms , perhaps you should too 
since with such a big SchedulePeriod as you specified perhaps it didnt really work 
exactly at midnight for you too ? ) 

Is your scheduler implementing org.jboss.varia.scheduler.Schedulable ?

what jboss version are you using ? (i'm using 3.2.5)

Here is my full code , jboss-service.xml + scheduler class ...


  |   <mbean code="org.jboss.varia.scheduler.Scheduler"
  |      name=":service=Scheduler">
  |     <attribute name="StartAtStartup">true</attribute>
  |     <attribute 
name="SchedulableClass">mypackage.util.jmx.JMXLogScheduler</attribute>
  |     <attribute name="SchedulableArguments"></attribute>
  |     <attribute name="SchedulableArgumentTypes"></attribute>
  |             <attribute name="DateFormat">dd-MM-yy HH:mm</attribute>
  |     <attribute name="InitialStartDate">01-01-01 00:00</attribute>
  |     <attribute name="SchedulePeriod">5000</attribute>
  |     <attribute name="InitialRepetitions">-1</attribute>
  |   </mbean>
  | 

And the class


  | package mypackage.util.jmx;
  | 
  | import org.apache.log4j.Category;
  | import org.jboss.varia.scheduler.Schedulable;
  | 
  | public class JMXLogScheduler implements Schedulable {
  | 
  |     protected Category _log = Category.getInstance(getClass());
  | 
  |     public void perform(Date pTimeOfCall, long pRemainingRepetitions) {
  |        _log.debug("scheduler perform!");
  |   }
  | }
  | 

the scheduler starts up running immediately...  instead of how I specified :


  | <attribute name="InitialStartDate">01-01-01 00:00</attribute>
  | 

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

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


-------------------------------------------------------
This SF.Net email is sponsored by OSTG. Have you noticed the changes on
Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now,
one more big change to announce. We are now OSTG- Open Source Technology
Group. Come see the changes on the new OSTG site. www.ostg.com
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to