The ActiveMQ Web Console is a web based administration tool for working with ActiveMQ. When used with the JMX support it can be an invaluable tool for working with ActiveMQ

ActiveMQ Web控制台是一个基于Web的管理工具,用于处理ActiveMQ。当使用JMX支持时,它可以成为使用ActiveMQ的无价工具。

Running the Web Console on ActiveMQ 5.0 or later

在ActiveMQ 5.0或更高版本上运行Web控制台。

We have integrated the Web Console into the binary distribution. So Download a binary distribution then follow the instructions for Version 5 Run Broker. Then you can point your web browser at the URL

我们已经将Web控制台集成到二进制发行版中。因此,下载一个二进制发行版,然后按照版本5运行代理的说明。然后你可以在网址上指出你的网页浏览器。

And hey presto, you should now have the Web Console running.

现在,你应该有了网络控制台。

In the event that you are running a standalone broker and the Web Console is not reachable, check that the following lines are included in your ActiveMQ config xml:

如果您正在运行一个独立的代理,而Web控制台不可访问,请检查以下的行是否包含在ActiveMQ配置xml中:

<bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<property name="locations">
<value>file:${activemq.base}/conf/credentials.properties</value>
</property>
</bean>

<!-- your broker config goes here -->

<import resource="${activemq.base}/conf/jetty.xml" />

The import will start up an embedded Jetty container. To verify that the config is working, the following should appear in your ActiveMQ console/logs on next startup:

导入将启动一个嵌入式Jetty容器。为了验证配置是否正常工作,以下应该出现在您的ActiveMQ控制台/日志中:

INFO | jetty-7.1.6.v20100715
INFO | ActiveMQ WebConsole initialized.

Changing the port

改变港口

If you want to change the port number of the web console, see the configuration files in the conf directory.

如果您想更改web控制台的端口号,请参见conf目录中的配置文件。

Securing Web Console

确保Web控制台

Starting with ActiveMQ 5.4.0, Web Console comes pre-configured with basic access authentication setup. It's turned off by default, so you need to turn it on explicitly, but it's really simple. Go to the ${ACTIVEMQ_HOME}/conf/jetty.xml and find the following line

从activemq5.4.0开始,Web控制台预先配置了基本的访问身份验证设置。默认情况下它是关闭的,所以需要显式地打开它,但它非常简单。去$ { ACTIVEMQ_HOME } / conf /码头。xml并找到以下代码行。

<property name="authenticate" value="false" />

and change it to

和改变它

<property name="authenticate" value="true" />

That's it. From that point on, web server will look at ${ACTIVEMQ_HOME}/conf/jetty-realm.properties file trying to match provided credentials with those listed in the file. By default, you can access the web console with admin/admin credentials. That can be changed (and more users can be added) in the jetty-realm.properties file.

就是这样。从那时起,web服务器将查看${ACTIVEMQ_HOME}/conf/jetty-realm。试图匹配的属性文件提供了文件中列出的凭证。默认情况下,您可以使用admin/admin凭证访问web控制台。在jetty领域可以更改(并且可以添加更多的用户)。属性文件。

You may also wish to enable ssl connector to further secure access to the web console and other web resources of the broker. To do that, go to the ${ACTIVEMQ_HOME}/conf/jetty.xml and make sure you have the secure connector enabled. In versions 5.7 and newer just uncomment a predefined config. In any case make sure your connectors settings looks similar to this.

您还可能希望启用ssl连接器,以进一步安全地访问代理的web控制台和其他web资源。要做到这一点,请访问${ACTIVEMQ_HOME}/conf/jetty。xml并确保启用了安全连接器。在版本5.7和更新的只是取消注释一个预定义的配置。在任何情况下,确保您的连接器设置与此类似。

        <property name="connectors">
            <list>
                <bean id="Connector" class="org.eclipse.jetty.server.nio.SelectChannelConnector">
                    <property name="port" value="8161" />
                </bean>
                <bean id="SecureConnector" class="org.eclipse.jetty.server.ssl.SslSelectChannelConnector">
                    <property name="port" value="8162" />
                    <property name="keystore" value="file:${activemq.conf}/broker.ks" />
                    <property name="password" value="password" />
                </bean>
            </list>
        </property>

Standard connector is left enabled in this example, but you can remove it in your configuration if you wish.

在本例中,标准连接器是启用的,但是如果您愿意,可以在配置中删除它。

Note that these changes will affect the whole web server, so if you're using REST API or blob fileserver be sure to provide appropriate credentials.

请注意,这些更改将影响整个web服务器,因此,如果您使用REST API或blob文件服务器,请确保提供适当的凭证。

If you're interested in securing 5.3.1 (and 5.3.2) Web consoles, take a look at this article. For older versions, please refer to this article

如果您对保护5.3.1(和5.3.2)Web控制台感兴趣,请查看本文。对于旧版本,请参阅本文。

Using the Web Console

使用Web控制台

The web console is depicted in the following image:

web控制台的描述如下:

To get started, go to the Send page and send a message to a queue (you can send multiple if you like, see the message count field).

要启动,请访问发送页面并将消息发送到队列(如果您愿意,可以发送多个消息,请参见消息计数字段)。

Now that you have sent messages to a queue you should be able to Browse then and view the queue as an RSS or Atom feed.

现在您已经将消息发送到队列,您应该能够浏览然后将队列视为RSS或Atom提要。

The Web Console has many features relative to it's tabs as shown in the following table.

Web控制台有许多相对于它的选项卡的特性,如下表所示。

Tab

选项卡

Features

特性

Home

System Usage

系统使用

Queues

队列

 

 

Topics

主题

Viewing Advisory Messages

查看咨询信息

Subscribers

用户

 

 

Connections

连接

Protocols

协议

Scheduled

计划

 

 

Send

发送

Delay and Schedule Message Delivery

延迟和计划消息传递。

External Web Consoles

外部Web控制台

There are a number of external web consoles for Apache ActiveMQ in separate open source projects:

在单独的开源项目中,Apache ActiveMQ有许多外部web控制台:

External Project

外部的项目

Description

描述

hawtio

hawtio

hawtio is an open source HTML5 web application for visualising, managing, tracing and debugging Camel routes & endpoints, ActiveMQ brokers, JMX, OSGi and logging. Here is a blog entry how to install hawtio as web console for ActiveMQ.

hawtio是一个开源的HTML5 web应用程序,用于可视化、管理、跟踪和调试Camel路由和端点、ActiveMQ代理、JMX、OSGi和日志记录。下面是一个博客条目,如何安装hawtio作为ActiveMQ的web控制台。

RHQ

RHQ

RHQ is an open source operational monitoring tool which has support for Apache Camel (along with other Apache projects like Tomcat, httpd, ActiveMQ etc)

RHQ是一个开源的操作监视工具,它支持Apache Camel(以及其他Apache项目,如Tomcat、httpd、ActiveMQ等)。

Hermes JMS HermesJMS is an extensible console that helps you interact with JMS providers making it simple to publish and edit messages, browse or seach queues and topics, copy messages around and delete them.
© 2004-2011 The Apache Software Foundation.
Apache ActiveMQ, ActiveMQ, Apache, the Apache feather logo, and the Apache ActiveMQ project logo are trademarks of The Apache Software Foundation. All other marks mentioned may be trademarks or registered trademarks of their respective owners.
Graphic Design By Hiram