8

我正在使用具有惊人 HawtIO 接口的 ActiveMQ 5.9.0。所以当 5.10.0 到来时,我也迁移了我的系统。现在我看到里面不存在 HawtIO 接口......它只是从webapps文件夹中从 5.9.0 到 5.10.0 消失了,所以我尝试了教程ActiveMQ 和 HawtIO但它不起作用......如何配置接口?

4

3 回答 3

8

或者,您可以将 HawtIO 用作独立的 Web 应用程序,通过 Jolokia 连接到 ActiveMQ(5.9 之前的方式)。

  1. 在此处下载 HawtIO 独立 jar:http: //hawt.io/getstarted/index.html
  2. 在 ActiveMQ 服务器上运行 jar:(java -jar hawtio-app-1.4.37.jar如果您希望它在启动时运行,请将命令放入 .bat 脚本并添加计划任务。)
  3. 导航到 http:// your server:8080/hawtio
  4. 创建一个新连接,为其命名,localhost用作主机、8161端口和api/jolokia路径。

连接,享受!

于 2015-01-08T14:11:04.843 回答
6

As stated in Erik Williams answer:

  • Unzip the hawt-io war into the ActiveMQ\webapps folder (ex. hawtio).
  • change jetty.xml to include this webapp as a folder

    <bean class="org.eclipse.jetty.webapp.WebAppContext">
        <property name="contextPath" value="/hawtio" />
        <property name="resourceBase" value="${activemq.home}/webapps/hawtio" />
        <property name="logUrlOnStart" value="true" />
    </bean>
    
  • On the default 5.10.0 standalone setup we also had to add three security paramaters to enable the brokers security. This can be done in the activmemq or activemq.bat file. Add these settings to the ACTIVEMQ_OPTS variable:

    • -Dhawtio.realm=activemq
    • -Dhawtio.role=admins
    • -Dhawtio.rolePrincipalClasses=org.apache.activemq.jaas.GroupPrincipal
  • We did not have to remove the slf4j jar, it was not present.

于 2015-01-11T17:41:17.460 回答
4

是的,我不完全确定他们为什么选择这样做,因为这是他们一直在吹捧的一个相当大的功能。

在任何情况下,如果您无法让独立方法工作,通过下载hawt-io本身并像在 5.9 中一样安装它来设置自己非常简单。

您需要解压缩(或者至少我是这样做的)WAR 并设置 jetty.xml,因为它是在 5.9 中设置的,以将 hawt.io 作为应用程序包含在内。

如果我记得,我想我也遇到了一些类加载冲突,因为 hawt.io 附带的一些类比代理安装的更新。

于 2014-10-31T14:24:37.583 回答