java - 在从 2 迁移到 Camel 3+
问题描述
我正在从骆驼 2.25.2 迁移到 3.4.0。我注意到以前在我的 camel-context.xml 中,我可以将<process>
. <threads></threads>
然而,随着升级,Intellij 一直在抱怨——“这里不允许元素进程”。
例如:
<threads>
<process ref="abcProcessor" />
</threads>
但是,我可以在 . 经过仔细检查,我注意到 camel-spring.xsd 中有以下内容:
<xs:element name="threads" type="tns:threadsDefinition">
中的 ThreadsDefinition 类org/apache/camel/camel-core-engine/3.4.0/camel-core-engine-3.4.0.jar!/org/apache/camel/model/ThreadsDefinition.class
是不同的。
我尝试查找一些文档和材料,但对如何从 2.25.2 迁移到 3.4.0 以获取线程中的进程标记无济于事。
这是我能找到的最接近的:https ://camel.apache.org/manual/latest/async.html
有没有办法迁移用 DSL 编写的异步消息交换自定义处理器?
如果社区能给我一些见解,将不胜感激。干杯!
解决方案
Apache Camel 的主要贡献者、Camel In Action 的作者克劳斯易卜生在 IRC 上澄清
放在<process>
后面<threads />
推荐阅读
- java - 如何强制创建控制皮肤以便我可以使用 getParent?
- amazon-web-services - Systemd 服务文件命令不起作用,但可与直接命令一起使用
- python - 如何确定一个人是否有硝基不和谐 py
- python - 如何创建一个直方图,显示相对于另一个变量的指定范围的二项式值的计数
- puppeteer - 在同一个浏览器上使用多个 Chrome 配置文件?
- elasticsearch - Metricbeat 检索总 CPU 总体利用率(而不是“使用”或“负载”)
- javascript - 我的应用突然说找不到我的 app.tsx 模块
- react-native - 使用 react-native-circular-progress 中的半圆形,从另一端没有显示圆形
- ios - SceneKit SCNAnimation:如何检查当前是否正在播放某个动画?
- sql - 如何使用 SQL 查询从 JSON 数据中查找特定列的计数