aspose file tools
The moose likes Other Open Source Projects and the fly likes Quartz Scheduler that run in every two or three weeks Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Reply Bookmark "Quartz Scheduler that run in every two or three weeks" Watch "Quartz Scheduler that run in every two or three weeks" New topic
Author

Quartz Scheduler that run in every two or three weeks

Neri Michael Abat
Greenhorn

Joined: Feb 01, 2008
Posts: 4
Hello gurus...

I need to create a schedule that will run Monday, Wednesday and Friday at 5:00 pm but it should run every two weeks from the start date. the cron expression that i've created is not working

0 0 17 ? * 2/14,4/14,6/14

what i did was to multiply 7 with 2 (7*2) to come up with 14 but this expression only runs week, the "/14" is not working.

I would appreciate any help coming from you guys...

thanks in advance.
Martijn Verburg
author
Bartender

Joined: Jun 24, 2003
Posts: 3268

Short answer is I don't think you can, see this for a way around it in cron (you'll need to do the equivalent in Quartz.)


Cheers, Martijn - Blog,
Twitter, PCGen, Ikasan, My The Well-Grounded Java Developer book!,
My start-up.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Quartz Scheduler that run in every two or three weeks
 
Similar Threads
Can someone help me figure this out
Cron expression issue
Facing problem for building cron expression daily for every N days
Add days, but not weekend days
Synchronized Block