根据此文档,我必须能够通过以下 URL 访问 ActiveMQ 控制台:http://localhost:8161/console
我通过 Spring Boot 应用程序在嵌入式模式下使用 ActiveMQ。ActiveMQ 工作正常,但我无法访问http://localhost:8161/console
如何配置嵌入的 Spring Boot 和 ActiveMQ 以便能够访问 Web 控制台?
我使用Spring 3.2.5 配置了一个ActiveMQ 5.8.0 嵌入式代理
这是我的jmsconfiguration.xml
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:amq="http://activemq.apache.org/schema/core" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.2.xsd
http://activemq.apache.org/schema/core http://activemq.apache.org/schema/core/activemq-core.xsd">
<amq:broker brokerName="localhost" dataDirectory="./data" useJmx="true" persistent="true">
<amq:persistenceAdapter>
<amq:kahaDB directory="./kahadb" checksumJournalFiles="true" checkForCorruptJournalFiles="true" />
</amq:persistenceAdapter>
<amq:transportConnectors>
<amq:transportConnector name="websocket" uri="ws://0.0.0.0:61614"/>
<amq:transportConnector name="stomp" uri="stomp://0.0.0.0:61613"/>
<amq:transportConnector name="openwire" uri="tcp://0.0.0.0:61616"/>
</amq:transportConnectors>
</amq:broker>
<amq:connectionFactory id="jmsFactory" brokerURL="vm://localhost" />
</beans>
Run Code Online (Sandbox Code Playgroud)
能够访问Web控制台是非常好的和有用的...但是我一直试图启用它而没有成功.
有谁知道如何配置它?