这可能是一个 n00b 问题,我已经在 CentoOS 上安装了 activemq,当我启动它时,将 brokerName 设置为“Test”:
sudo activemq start broker:tcp://localhost:61666?brokerName=Test&persistent=true&useJmx=false
然后查询它:
sudo activemq query
代理名称始终是“localhost”...
....
QueueSubscribers = []
Topics = [org.apache.activemq:type=Broker,brokerName=localhost,destinationType=Topic,destinationName=ActiveMQ.Advisory.MasterBroker]
TotalMessageCount = 0
SslURL =
TemporaryQueueSubscribers = []
BrokerName = localhost <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<HERE
DynamicDestinationProducers = []
Persistent = true
DataDirectory = /etc....
....
有人可以阐明一下吗?当我在示例 Java 类中使用 JMS API 进行连接时,指定上面的完整 URL 会将其放入该代理中吗?这是有多个不同名称的经纪人吗?
感谢您的任何澄清,