Apache camel 如何将参数文件传递给石英元件?
阅读文档 propertiesFile(使用者)要从类路径加载的属性的文件名 我的路线Apache camel 如何将参数文件传递给石英元件?,apache-camel,Apache Camel,阅读文档 propertiesFile(使用者)要从类路径加载的属性的文件名 我的路线 from("quartz://test/receive?cron=0+0+*+*+*+?&propertiesFile=quartz.properties") .to("mock:done"); 返回错误: 如果参数拼写正确并且是端点的属性,请检查uri。未知参数=[{propertiesFile=quartz.properties}]}] 在Apache Camel 3.0、3.1.0上重复,您正
from("quartz://test/receive?cron=0+0+*+*+*+?&propertiesFile=quartz.properties")
.to("mock:done");
返回错误:
如果参数拼写正确并且是端点的属性,请检查uri。未知参数=[{propertiesFile=quartz.properties}]}]
在Apache Camel 3.0、3.1.0上重复,您正在配置quartz端点。“propertiesFile”是石英元件的字段。 这样做:
QuartzComponent component = new QuartzComponent(getContext());
component.setPropertiesFile("quartz.properties");
getContext().getRegistry().bind("quartz", component);