【发布时间】:2017-10-21 20:13:50
【问题描述】:
我有一个自动启动 ActiveMQ 代理 (vm://localhost) 的 Spring Boot 应用程序:它工作正常,我可以成功发送和接收消息。
我希望 Spring Boot 也启动 ActiveMQ Web 控制台,例如http://localhost:8161/admin(很像 H2 数据库控制台)。
问题:如何让 Spring Boot 应用启动 ActiveMQ Web 控制台?
奖励积分:仅适用于特定 Spring @profile?
提前致谢
注意:我已经审查了How to enable web console on ActiveMq embedded broker,但这需要使用我不想/不能使用的hawtio。
【问题讨论】:
-
r.e.可能的重复:接受的答案是使用 hawt.io - 我不想使用这个。
-
如果你不能使用 hawtio,你必须构建并嵌入这个工件 github.com/apache/activemq/tree/master/activemq-web-console 作为一个 jar 并像这里所做的那样启动一个服务器 github.com/apache/activemq/blob/master/activemq-web-console/src/…
标签: spring-boot activemq