运行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

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'
发布评论
评论(1)
我通过使用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