How to save the history of quartz triggers in the database after shooting in java

I use SimpleTriggerBean and CronTriggerBean after executing these triggers, I need to maintain a trigger history so that I create the table name quartz_fired_triggred. How to save details of triggers triggered in this particular table.

 Scheduler scheduler = StdSchedulerFactory.getDefaultScheduler();
 JobExecutionContext jobExeContext = new JobExecutionContext(scheduler, firedBundle, job);
+4
source share
1 answer

Set the JobDetail.Durable = true property — which instructs Quartz not to delete the job when it becomes an “orphan” (when Job no longer has a trigger that references it).

Note that triggers are deleted.

Link: http://www.quartz-scheduler.net/documentation/faq.html

+1
source

Source: https://habr.com/ru/post/1532300/


All Articles