[JBoss-user] [Management, JMX/JBoss] - Re: scheduler at midnight
Its fine! my mistake :O setting the scheduled period to : 8640 and its perfect. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3845792#3845792 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3845792 --- SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off Retail on Ink Toner - Free Shipping and Free Gift. http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - Re: scheduler at midnight
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=StartAtStartuptrue/attribute | attribute name=SchedulableClassmypackage.util.jmx.JMXLogScheduler/attribute | attribute name=SchedulableArguments/attribute | attribute name=SchedulableArgumentTypes/attribute | attribute name=DateFormatdd-MM-yy HH:mm/attribute | attribute name=InitialStartDate01-01-01 00:00/attribute | attribute name=SchedulePeriod5000/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=InitialStartDate01-01-01 00:00/attribute | View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3844527#3844527 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=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
[JBoss-user] [Management, JMX/JBoss] - Re: scheduler at midnight
Hi I would really appreciate any help on this: When i'm using: attribute name=InitialStartDate2/5/02 07:21 pm/attribute attribute name=SchedulePeriod1/attribute attribute name=InitialRepetitions-1/attribute The scheduler works every 10 seconds with no consideration of the start date. (even if the start hour is less then this current hour it starts working) When I'm using: attribute name=InitialStartDate2/5/02 07:21 pm/attribute attribute name=SchedulePeriod1/attribute attribute name=InitialRepetitions1000/attribute Then the scheduler never works ... why is that? (all I want is the scheduler to work every night at midnight... :/ ) View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3844508#3844508 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3844508 --- 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
[JBoss-user] [Management, JMX/JBoss] - Re: scheduler at midnight
Hi, I use something like this: | mbean code=org.jboss.varia.scheduler.Scheduler name=myService:service=MyScheduler; | attribute name=StartAtStartuptrue/attribute | attribute name=SchedulableClassmy.schedulable.class/attribute | attribute name=SchedulableArgumentsmyArg/attribute | attribute name=SchedulableArgumentTypesjava.lang.String/attribute | attribute name=DateFormatdd-MM-yy HH:mm/attribute | attribute name=InitialStartDate01-01-01 00:00/attribute | attribute name=SchedulePeriod8640/attribute | attribute name=InitialRepetitions-1/attribute | depends-list | Hope it helps.. T! View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3844511#3844511 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3844511 --- 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
[JBoss-user] [Management, JMX/JBoss] - Re: scheduler at midnight
opps the snipped wasnt seen correctly here it is : mbean code=org.jboss.varia.scheduler.Scheduler name=:service=Scheduler attribute name=StartAtStartuptrue/attribute attribute name=SchedulableClassmypackage.util.jmx.JMXLogScheduler/attribute attribute name=SchedulableArguments/attribute attribute name=SchedulableArgumentTypes/attribute attribute name=InitialStartDateNOW/attribute attribute name=SchedulePeriod1/attribute attribute name=InitialRepetitions-1/attribute /mbean View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3843957#3843957 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3843957 --- 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