Re: [JBoss-user] Scheduler MBean

2003-07-19 Thread Phil Shrimpton
On Friday 18 July 2003 21:56, Phil Shrimpton wrote: Hi, What I am trying at the moment is milliseconds past 1st July 1am, which should exclude the date format altogether This worked. Phil -- 11:33am up 94 days, 25 min, 1 user, load average: 1.20, 1.11, 1.08 ICQ: 760757

RE: [JBoss-user] Scheduler MBean

2003-07-18 Thread Danny . Yates
Hi, I don't know the answer to your question! But if there is no answer, you could use an algorithm such as the following: (Please excuse the pseudo-code, I've never written an MBean, so don't actually know the interface) class MyMBean extends MBean { private boolean runToday = false;

Re: [JBoss-user] Scheduler MBean

2003-07-18 Thread Brian Wallis
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

Re: [JBoss-user] Scheduler MBean

2003-07-18 Thread Phil Shrimpton
On Friday 18 July 2003 12:52, [EMAIL PROTECTED] wrote: Hi, I don't know the answer to your question! But if there is no answer, you could use an algorithm such as the following.. [snip] Thanks, thats my backup plan, but I am sure there must be a 'proper' way to do it. Phil -- 1:22pm

Re: [JBoss-user] Scheduler MBean

2003-07-18 Thread Marek Lange
Brian Wallis wrote: 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

Re: [JBoss-user] Scheduler MBean

2003-07-18 Thread Brian Wallis
On Fri, 18 Jul 2003 11:43 pm, Phil Shrimpton wrote: Does not seem to. 'NOW' + 8640 works every 24 hours from when I start it, but I can't seem to get it to work if I enter a date/time value And you don't get any errors in the log? (I often have problems getting date strings correct :-) If

Re: [JBoss-user] Scheduler MBean

2003-07-18 Thread Scott M Stark
This will work, but you do get drift, there is no correction for daylight savings, leap year, support for holidays, etc. Our scheduler is a trivial interval based service that is not approriate for cron like or more sophisticated requirements. You might look at quartz and improving its

Re: [JBoss-user] Scheduler MBean

2003-07-18 Thread Phil Shrimpton
On Friday 18 July 2003 14:23, Brian Wallis wrote: Hi, Does not seem to. 'NOW' + 8640 works every 24 hours from when I start it, but I can't seem to get it to work if I enter a date/time value And you don't get any errors in the log? No, but I do if I enter an incorrect date format,

Re: [JBoss-user] Scheduler MBean

2003-07-18 Thread Phil Shrimpton
On Friday 18 July 2003 17:36, Scott M Stark wrote: Hi, This will work, but you do get drift, there is no correction for daylight savings, leap year, support for holidays, etc. Not worried about slippage, unless it is hours g I just need something to run, after midnight, and before people