有没有办法更改所有作业(CronTrigger)的MisfireInstruction值?
我尝试设置:
org.quartz.CronTrigger.misfireInstruction=2在org/quartz/quartz.properties中
但它似乎没有效果。
使用的quartz版本为1.8.5
使用camel 2.10.3
请注意,我不是自己创建石英触发器,它是通过骆驼路线完成的
from("quartz://" + getJobId() + "?cron=" + cronExpression + "&stateful=true")
.routeId(getJobId())
.autoStartup(false)
.to(getRouteTo());因此,我不能立即访问quartz crontrigger,这就是为什么我想要在全球范围内更改失火策略。
发布于 2013-10-12 00:35:11
Quartz JAR中嵌入了quartz.properties文件,因此不确定选择哪个.properties文件。
在org.apache.camel.component.quartz.QuartzComponent上,您可以配置要使用的自定义属性文件:
QuartzComponent quartz = new QuartzComponent();
quartz.setPropertiesFile("classpath:com/foo/myquartz.properties");然后将组件添加到Camel:
camelContext.addComponent("quartz", quartz);https://stackoverflow.com/questions/19320127
复制相似问题