使用带有Apache骆驼的计时器组件和周期查询参数会导致错误:错误绑定属性(周期= 10),名称:bean上的周期:
我正在使用Apache Camel版本3.17.0。
我试图每10毫秒通过使用该方法来设想bean。当我将周期= 10添加到URI时,
from("timer://firsttimer?period=10&exchangePattern=InOnly&repeatCount=100")
.bean(SecondBean.class, "pubMessage");
我会收到以下错误消息:
org.apache.camel.FailedToCreateRouteException: Failed to create route route1: Route(route1)[From[timer://firsttimer?period=10&exchangePatt... because of Failed to resolve endpoint: timer://firsttimer?exchangePattern=InOnly&period=10&repeatCount=100 due to: Error binding property (period=10) with name: period on bean: timer://firsttimer?exchangePattern=InOnly&period=10&repeatCount=100 with value: 10
当我从URI中删除周期= 10 时,一切都会膨胀。我应该能够根据apache骆驼
此行为至少延伸至3.12.0。
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论