如何在ActiveMq嵌入式代理上启用Web控制台 [英] How to enable web console on ActiveMq embedded broker

查看:102
本文介绍了如何在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/模式/ 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目录= ./ 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>

能够访问Web控制台会非常好并且很有用...但是我已经



有人知道如何配置它吗?

解决方案

您可以改用hawtio- http://hawt.io/



它可以独立于代理程序所在的位置进行安装,并且可以在JVM内部查找代理程序,并仍用作管理代理程序的Web控制台。



hawtio已从ActiveMQ 5.9以后的版本中立即提供,用于替换旧控制台(旧控制台已弃用,但仍包含在内,但将在以后的版本中删除)。 p>

hawtio还可以管理JVM中的其他内容,例如Camel,显示JMX等。



如果您想在当前的Spring应用程序中包含旧的Web控制台,则可能会很困难,因为您将需要包含其所有html / jps内容和其他内容。这不是一件容易的事。然后设置您的web.xml以包括旧控制台所需的内容,依此类推。


I've configured an ActiveMQ 5.8.0 embedded broker using Spring 3.2.5

This is my 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>

It would be very nice and useful to be able to access web console ... however i've been trying to enable it without success.

Does anyone knows how to configure it?

解决方案

You can try hawtio instead - http://hawt.io/

It allows to be installed independent of where the broker resides, and can look inside the JVM to find the broker, and still be used as web console to manage the broker.

hawtio is included out of the box in ActiveMQ 5.9 onwards, and is to replace the old console (the old console is deprecated but still included, but will be removed in a future release).

hawtio can also manage other stuff in the JVM such as Camel, and show JMX, and whatnot.

If you want to include the old web console in your current spring application, then that can be tough as you would need to include all its html/jps content and whatnot. Its not an easy task to do. And then setup your web.xml to include what the old console needs, and so forth.

这篇关于如何在ActiveMq嵌入式代理上启用Web控制台的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆