Java Example: Dynamic Job Scheduling with Quartz

后端 未结 5 1415
死守一世寂寞
死守一世寂寞 2020-12-12 16:42

I want to expose an user interface to define Quartz JOBs dynamically. Where user should have facility to define JOBs properties like JOB name, cron expression or time interv

5条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-12 17:29

    I have similar issue where I want to update the cron expression in JOB_DETAILS table of quartz(2.3.2 version). The scenario is like, I have already a scheduled job running and I want to update it and run it on different frequency. Rest of the things I managed but the update on the table won't happen. So after reading the documentation I found out that you can update the details of the job using add method.

    // store, and set overwrite flag to 'true'
    scheduler.addJob(jobDetail, true);
    

    The things I am doing with Java only.

提交回复
热议问题