Reputation: 413
What is the easiest way to build trigger for a job with given interval as TimeSpan and specified DayOfWeek in 2.1.x versions?
Upvotes: 0
Views: 234
Reputation: 453
Geek is very right, cron expression may be a bit tricky at first look but they are flawless.
As for quartz, cron expression for "Day of week" can be like: 0 0 8 ? * 1 *
Would mean 8 AM every Monday
You better refer to: Quartz CronTrigger
Upvotes: 1
Reputation: 23429
Why do you want to build a simple Trigger ? Simple Triggers are prone to DST issues. Make a CRON Trigger using a CRON expression and specify an end time so that the job expires.
Upvotes: 2