Hi everyone,
a common requirement in my business is to provide a scheduled delivery of
messages avoiding some range of date (Ex. holiday)
Is there a way to configure quartz consumer to avoid some date?
Quartz documentation suggestions this:
HolidayCalendar cal = new HolidayCalendar();
cal.addExcludedDate( someDate );
cal.addExcludedDate( someOtherDate );
sched.addCalendar("myHolidays", cal, false);
....
Trigger t2 = newTrigger()
.withIdentity("myTrigger2")
.forJob("myJob2")
.withSchedule(dailyAtHourAndMinute(11, 30)) // execute job daily at
11:30
.modifiedByCalendar("myHolidays") // but not on holidays
...
Thanks in advance.
Greeting
Michele
--
View this message in context:
http://camel.465427.n5.nabble.com/Quartz-2-Consumer-with-cron-expression-and-avoiding-some-range-of-date-tp5778071.html
Sent from the Camel - Users mailing list archive at Nabble.com.