我们可以配置经纪人以创建具有地址名称的自动生成的多播队列名称

发布于 2025-02-10 09:37:29 字数 616 浏览 1 评论 0 原文

运行Artemis Broker 2.18

<auto-create-queues>true</auto-create-queues>
<auto-create-addresses>true</auto-create-addresses>

当我开始使用骆驼JMS组件从不存在的多播队列中消费时,

from("jms:topic:my_topic")

我在所有地址上 -bde4-6bf3dd61c146

我知道我可以使用FQDN名称正确创建它:

from("activemq:topic:my_topic::my_topic")

但是,这需要更改客户端配置。

有没有办法配置经纪人将地址名称用作默认队列名称? 在这种情况下,队列名称将是“ my_topic”

I ham running an Artemis broker 2.18 with on all addresses (match="#")

<auto-create-queues>true</auto-create-queues>
<auto-create-addresses>true</auto-create-addresses>

When I start to consume from a non-existing multicast queue using Camel JMS component

from("jms:topic:my_topic")

The generated queue name under the my_topic address is cryptic: 5ae02282-6685-4558-bde4-6bf3dd61c146

Artemis console

I know that I can use FQDN name to properly create it:

from("activemq:topic:my_topic::my_topic")

but this requires changing the client configuration.

Is there a way to configure the broker to use the address name as the default queue name?
In this case that the queue name would be 'my_topic'

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

假面具 2025-02-17 09:37:29

我通过使用Artemis多播队列的地址名称作为ActiveMQ上的主题名称来解决此问题。
我使用Jolokia的地址INFO操作查询多播队列的地址名称

I solved this by using the address name of the Artemis multicast queue as the topic name on ActiveMQ.
I query the address name of the multicast queue using jolokia's addressInfo operation

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文