简体   繁体   中英

scheduling task execution in Java

How can I execute task in Java every x months?, and how can I execute task in given days? (for example I want to execute my task every week in Sunday Tuesday and Saturday)

Thanks, Michal

You can do this thing easily with third party APIs. Quartz scheduler is one of it. Have a look over below links :

1) http://quartz-scheduler.org/ 2) http://www.mkyong.com/tutorials/quartz-scheduler-tutorial/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM