File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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 | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Other Open Source Projects
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: 3274
    
    5

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