Posts Topics Forums Images
Search videos from message boards Videos Search messages from microblogs Microblogs Search messages from imdb.com Imdb Search messages from yuku.com Yuku Search messages from lefora.com (free forums) Lefora
My account: Login | Sign Up
Loading... 

Thread: Holiday Scheduler

Started 1 month, 2 weeks ago by Suresh
Hello I have not been able to figure out in quartz, how to set a job / trigger to skip the schedule run on Holiday. ( I have set my Business day and week end calendars to schedulers). Quartz default bahaviour looks like to run on next business date, if the current date is holiday. I'm looking for a way,in which, I should be able to configure the ...
Site: OpenSymphony Support Forums  OpenSymphony Support Forums - site profile
Forum: Quartz Users  Quartz Users - forum profile
Total authors: 3 authors
Total thread posts: 5 posts
Thread activity: no new posts during last week
Domain info for: opensymphony.com

Other posts in this thread:

ErnieZ replied 1 month, 2 weeks ago
Are you using the trigger's setCalendarName() method to associate your holiday calendar with the trigger(s)?

Suresh replied 1 month, 2 weeks ago
Yes, I did. scheduler.addCalendar("US Holidays", holidayCal, true, true); scheduler.addCalendar("US Weekend", weekendCal, true, true); cronTrigger.setCalendarName("US Holidays"); cronTrigger.setCalendarName("US Weekend"); Now my Holiday list has Friday (eg: 10/30/2009) as Holiday. My requirement is, on my web application, User should be able ...

Jonas Ladenfors replied 1 month, 1 week ago
I am also interested in this feature. Does anyone with insight in the Quartz architecture know what kind of method or class is called when a excluded calendar is found by the schedualer? I tried overloading the updateAfterMisfire which I initially thought was called if the schedualer could not complete a trigger event but it did not seem to go there...

Jonas Ladenfors replied 1 month, 1 week ago
This is how I did it. Added following to the Trigger Type I am using "NthIncludedDayTrigger". If you put the following code in the methods getXXXFireTimeAfter you could if you supply a RolloverMethod enum control which day will be the next fire date. Unfortunately there is a lot of global variables used in the NthIncludedDayTrigger so it is hard ...

 

Top contributing authors

Name
Posts
Suresh
2
user's latest post:
Holiday Scheduler
Published (2009-10-28 14:36:00)
Yes, I did. scheduler.addCalendar("US Holidays", holidayCal, true, true); scheduler.addCalendar("US Weekend", weekendCal, true, true); cronTrigger.setCalendarName("US Holidays"); cronTrigger.setCalendarName("US Weekend"); Now my Holiday list has Friday (eg: 10/30/2009) as Holiday. My requirement is, on my web application, User should be able to configure job with 3 options: On Holiday :o Skip o Run...
Jonas Ladenfors
2
user's latest post:
Holiday Scheduler
Published (2009-11-04 09:27:00)
This is how I did it. Added following to the Trigger Type I am using "NthIncludedDayTrigger". If you put the following code in the methods getXXXFireTimeAfter you could if you supply a RolloverMethod enum control which day will be the next fire date. Unfortunately there is a lot of global variables used in the NthIncludedDayTrigger so it is hard just extending the class and adding this method. I just took the whole class and added...
ErnieZ
1
user's latest post:
Holiday Scheduler
Published (2009-10-28 14:26:00)
Are you using the trigger's setCalendarName() method to associate your holiday calendar with the trigger(s)?

Related threads on "OpenSymphony Support Forums":

Related threads on other sites:

Thread profile page for "Holiday Scheduler" on http://www.opensymphony.com. This report page is a snippet summary view from a single thread "Holiday Scheduler", located on the Message Board at http://www.opensymphony.com. This thread profile page shows the thread statistics for: Total Authors, Total Thread Posts, and Thread Activity