开发者

Quartz scheduling problem

开发者 https://www.devze.com 2023-02-24 09:44 出处:网络
In my web app i have to retreive the dates on which reminders are to be sent from a database and send Sms andemail reminders on those dates.Can anyone tell me how to do this?I have to use quartz sched

In my web app i have to retreive the dates on which reminders are to be sent from a database and send Sms and email reminders on those dates.Can anyone tell me how to do this?I have to use quartz scheduler for the same.However I am using quartz scheduler for the fir开发者_如何转开发st time.


Use a set of Cron type Quartz triggers.

EG: Make a daily one that selects all the reminders for a given day (create a view with them). Then use a hourly one to process the reminders for that day - this will help you distribute the workload in 24hours. You can go further on up to your desired granularity for events (quarters, minutes).


Here's a tutorial on how to use Quartz: http://www.quartz-scheduler.org/docs/tutorial/index.html

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号