gpt4 book ai didi

apache-camel - 如何使用 camel-jms 组件将 Artemis 与 Camel Java DSL 一起使用?

转载 作者:行者123 更新时间:2023-12-04 05:18:26 27 4
gpt4 key购买 nike

现在我在 Java EE 7 应用程序上使用 JMS 2.0 和 Artemis 1.2.0,我想用 Camel 做一些集成任务。

现在查看 camel-jms 文档,没有提及如何使用通用的 camel JMS 组件来生成和使用任何符合 JMS 2.0 的代理的消息。

the component documentation 上的唯一示例正在使用 Spring DSL 配置具有其专用 ActiveMQ 组件的 ActiveMQ 连接工厂。如何为 Camel JMS 配置连接以连接到我的 Artemis 实例?

考虑到即使 Artemis 与 ActiveMQ 5.x 兼容,我仍将使用 Camel 路由来发布和订阅共享的持久主题,因此我需要能够配置 Artemis 连接并执行发布者和与它共享持久订阅者(仅在 JMS 2.0 中支持,ActiveMQ 仅支持 JMS 1.1)。

谢谢!

最佳答案

最后,我刚刚创建了一个 Artemis 连接工厂,并且我正在使用 camel-sjms,对于 JMS 2.0 功能,我现在直接将 JMS 2.0 生产者作为 Camel 组件,而对于消费者,我使用最新的 Spring Messaging 它使用JMS 2.0

我希望将来会针对 JMS 2.0 更新 camel-sjms 模块,这样我就可以使用 vanilla Camel 而不必通过自定义组件来解决问题。

关于apache-camel - 如何使用 camel-jms 组件将 Artemis 与 Camel Java DSL 一起使用?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34929242/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com