Hello, I have a problem with the configuration at run-time for a new job, I run the following code and the job is started correctly, but is not persisted to the database on the table BATCH_JOB_EXECUTION, how can I persist my new job? thanks for the help
Code:JobDetail jd = new JobDetail("MyJob", "quartz-batch", BatchServiceImp.class); CronTrigger ct = new CronTrigger("triggerName", "quartz-batch", "0 07 12 ? * *"); SchedulerFactory sf = new StdSchedulerFactory(); Scheduler sched = sf.getScheduler(); sched.scheduleJob(jd, ct); sched.start();


Reply With Quote