开发者

Quartz scheduling problem

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜