On Fri, 18 Jul 2003 10:20 pm, Phil Shrimpton wrote:
Hi,
I have implemented a schedualed MBean, and all works fine, I can get it 'triggering' every minute, every 10 etc., but I need it to 'trigger' at 1am every day, and can't find the correct combination of attributes.
Has anyone got any ideas on the best values for..
InitialStartDate SchedulePeriod
Doesn't something like "Mon, 1 Jul 2003 01:00:00" and 86400000
work? It should.
Indeed, you could set the InitialStartDate to 1am and set the interval to 24h...however this is a workaround and it is not the functionality the built-in scheduler is designed for. There were efforts to integrate a cron-like scheduler implementation about a year ago. If I remember, this has never been finished.
What you could do is to write an extension to your Schedulable implementation class where you calculate the next run with the transmitted paramaters of the -service.xml file.
-marek
------------------------------------------------------- This SF.net email is sponsored by: VM Ware With VMware you can run multiple operating systems on a single machine. WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the same time. Free trial click here: http://www.vmware.com/wl/offer/345/0 _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user