First of all I would like to say that I'm not familliar with velocity. I used the stand-alone schulduler-service from fulcrum. Secondly I also had a lot of problems getting it to work as expected and I had to made some modifications to the code in order to get it work. I send a patch to the mailing list and hope that someone will apply it and store it in CVS. There are 2 major problems for which I made a work-around and that would probely solve your problems too. First of all when reading jobs from the database (cold-storrage) the nextruntime is not evaluated and therefor all job are executed immedeatly, secondly the sorting of the jobQueue was not based on runtime but on the jobID which also results in very strange results.
As far as I'm concerned I think your code is OK, but you'll have to wait until somebody applies the patches I send. Regards Erik -----Original Message----- From: Marco Schoolenberg [mailto:[EMAIL PROTECTED]] Sent: woensdag 19 december 2001 16:12 To: Turbine Users List Subject: Scheduler Service And how to schedule for "a given day" at "00:00" hours And How to schedule for everyday at "a given time" Since you seem to be working with the scheduler * I am working on a Velocity App where I want a ScheduledJob to be able to be run every day at a sertain time lets say 8 o'clock. The problem that I am having is that it seems to be nessicery to make A jobEntry in DB for each day of the week ? Because as far as I can figure out there is no way of doing this with one entry in DB because it doesn't seem to posible to Do you know of a way to do this without making a Database Entry for Each day of the week for this Job. * The other thing I am wondering about why can't I set Monday at 0:00 hours ? ##JobEntry je = new JobEntry(second,minute,hour,weekday,dom,task); JobEntry myJe = new JobEntry(1,0,0,2,-1,MyJob); ## Somehow it seems logical to me this should produce a ScheduledJob Running every Monday at 00:00 o'clock ? ## If this isn't the way to do it could someone send me some example code of a Scheduled Job Actually running at 00:00 at any given day I have tried this but this fails to run. Could anyone point me in the right direction on these Issue's Thanks Marco -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
