首页 > 解决方案 > 从 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 编写的异步消息交换自定义处理器?

如果社区能给我一些见解,将不胜感激。干杯!

标签: javaxmlintellij-ideaapache-camelspring-camel

解决方案



推荐阅读