简体   繁体   English

前缀 jms.queue/jms.topic 从何而来?

[英]Where comes prefix jms.queue/ jms.topic from?

I migrated my java spring-boot project from apache activemq to artemis.我将我的 java spring-boot 项目从 apache activemq 迁移到 artemis。

I changed all relevant classpaths to artemis.jms.client, but somehow when I start the application, there will be topics with a prefix created like the following:我将所有相关的类路径都更改为 artemis.jms.client,但不知何故,当我启动应用程序时,会有如下前缀创建的主题:

jms.topic.VirtualTopic.name jms.topic.VirtualTopic.name

I just don't know where this jms.topic comes from.我只是不知道这个jms.topic来自哪里。 Does anyone have an idea?有人有想法吗?

ActiveMQ Artemis was designed from the ground up to be a multi-protocol broker. ActiveMQ Artemis 从一开始就被设计为一个多协议代理。 JMS queues and topics were differentiated from resources for other APIs and protocols by their use of the prefixes jms.queue. JMS 队列和主题通过使用前缀jms.queue. and jms.topic.jms.topic. respectively.分别。 However, as broker began to support more and more protocols this differentiation was identified as a hindrance to integration rather than an aid.然而,随着经纪人开始支持越来越多的协议,这种差异化被认为是整合的障碍而不是帮助。 Therefore in early 2017 with the release of version 2.0.0 the prefixes were removed.因此,在 2017 年初,随着版本 2.0.0 的发布,前缀被删除。

You must be using a 1.x version (either of the broker or the client) which is quite old at this point.您必须使用目前相当旧的 1.x 版本(代理或客户端)。 The current version is 2.14.0.当前版本是 2.14.0。 I recommend you move to a more recent release.我建议您迁移到更新的版本。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM