A couple of questions about spring quartz

I am thinking of creating spring quartz in my spring mvc web application. I have a few questions about this that I could not find the right answer.

  • If I want to use cron triggers for spring quartz, does quartz do the job using java system time or operating system time?
  • I plan to have a properties file to store all my cron triggers. If someone goes and changes the cron trigger for arbitrary task execution, will quartz automatically pick up the changes in the file? Or I have a way to tell quartz how to do this, if this is not the default behavior.
  • I recently read about the spring batch admin console package. Sounds like a good gui tool to migrate jobs. Can it be used to make special changes to crontab triggers? Or is there another gui tool that I could use to control job triggers?

early

+3
source share
1 answer

Quartz

API

, quartz API ( ):

    JobDetail job = new JobDetail();
    job.setName("myJob");
    job.setJobClass(MyJob.class);

    CronTrigger trigger = new CronTrigger();
    trigger.setName("myTriggerName");
    trigger.setCronExpression("0/30 * * * * ?");


    Scheduler scheduler = new StdSchedulerFactory().getScheduler();
    scheduler.start();
    scheduler.scheduleJob(job, trigger);

API- .

JMX-way

Qurtz RemoteMBeanScheduler:

Scheduler, QuartzScheduler JMX.

+1

All Articles