重新启动weblogic服务器后,已安排的作业不会触发预定作业。下面是代码。 我正在使用CronTrigger 我正在使用jobdetail
CronTrigger trigger = new CronTrigger();
trigger.setName(userId+"_"+packetId+"_"+jobFolderName);
trigger.setGroup(userId);
trigger.setCronExpression(cronexpression);
trigger.setStartTime(starttimedate);
trigger.setEndTime(endtimedate);
trigger.setMisfireInstruction(CronTrigger.MISFIRE_INSTRUCTION_SMART_POLICY);
job.setName(userId+"_"+packetId+"_"+jobFolderName);
job.setGroup(userId);
job.setVolatility(true);
//job.setRequestsRecovery(true);
job.setDurability(true);
Scheduler scheduler = new StdSchedulerFactory().getScheduler();
scheduler.start();
scheduler.scheduleJob(job, trigger);
trigger.setStartTime(starttimedate);
trigger.setEndTime(endtimedate);
trigger.setMisfireInstruction(CronTrigger.MISFIRE_INSTRUCTION_SMART_POLICY);
job.setName(userId+"_"+packetId+"_"+jobFolderName);
job.setGroup(userId);
job.setVolatility(true);
job.setRequestsRecovery(true);
job.setDurability(true);
Scheduler scheduler = new StdSchedulerFactory().getScheduler();
Scheduler.start();
Scheduler.scheduleJob(job, trigger);
我使用的是石英1.6.3版本。