이 콘텐츠는 선택한 언어로 제공되지 않습니다.

4.3. Deploying a Standalone Web Console


Revision History
10/29/12
updated the url used to download the components

Overview

For more security or reliability reasons you can deploy the Web console as a standalone application in Tomcat or another Web container. When running as a standalone application, the Web console can be set up to monitor Master/Slave clusters.

Disabling the Web embedded console

There is no need to disable the embedded Web console when using a standalone console. However, If you are using a standalone Web console, there is no reason to use the resources required by the embedded console. Nor is there a reason to leave an extra administrative access point open.
To disable the embedded Web console, you simply need to comment out, or remove, the import element that imports the Jetty configuration into your broker's configuration file as shown in Example 4.3, “Disabling the Embedded Web Console”.

Example 4.3. Disabling the Embedded Web Console

<beans  ... >

  <broker ... >
     ...
  </broker>

  <!-- <import resource="jetty.xml"/>  -->

</beans>

Configuring Tomcat

To deploy the Web console in Tomcat 5.x:
  1. Download the Web console's WAR, activemq-web-console-6.0.0.redhat-024.war, from http://repo.fusesource.com/nexus/content/repositories/releases/org/apache/activemq/activemq-web-console/5.8.0.redhat-60024/.
  2. Copy the Web console's WAR to the TOMCAT_HOME/webapps folder.
  3. Copy activemq-all-6.0.0.redhat-024.jar to the TOMCAT_HOME/common/lib folder.
  4. Modify TOMCAT_HOME/bin/catalina.sh(.bat) to include the configuration in Example 4.4, “Configuration for Deploying the Web Console in Tomcat”.

    Example 4.4. Configuration for Deploying the Web Console in Tomcat

    JAVA_OPTS="-Dwebconsole.type=properties \
    -Dwebconsole.jms.url=brokerURL \
    -Dwebconsole.jmx.url=brokerJMXURL \
    -Dwebconsole.jmx.user=JMXUserName \
    -Dwebconsole.jmx.password=JMXPassword"
  5. Restart Tomcat.
The Web console will be available at tomcatURI/activemq-web-console-5.8.0.redhat-60024.

Monitoring clusters

It's possible to configure the Web console to monitor a master/slave cluster. To do so:
  • Specify the JMS URL, webconsole.jms.url, with a failover: URI specifying the brokers in the cluster.
  • Specify the JMX URL, webconsole.jmx.url as a comma separated list that contains the JMX URL for each of the brokers in the cluster.
Example 4.5, “Configuration for Monitoring a Cluster with the Web Console” shows the properties for monitoring a cluster using the Web console.

Example 4.5. Configuration for Monitoring a Cluster with the Web Console

-Dwebconsole.jms.url=failover:(tcp://serverA:61616,tcp://serverB:61616)
-Dwebconsole.jmx.url=service:jmx:rmi:///jndi/rmi://serverA:1099/jmxrmi,service:jmx:rmi:///jndi/rmi://serverB:1099/jmxrmi
For more information about master/slave clusters see Fault Tolerant Messaging.
Red Hat logoGithubRedditYoutubeTwitter

자세한 정보

평가판, 구매 및 판매

커뮤니티

Red Hat 문서 정보

Red Hat을 사용하는 고객은 신뢰할 수 있는 콘텐츠가 포함된 제품과 서비스를 통해 혁신하고 목표를 달성할 수 있습니다.

보다 포괄적 수용을 위한 오픈 소스 용어 교체

Red Hat은 코드, 문서, 웹 속성에서 문제가 있는 언어를 교체하기 위해 최선을 다하고 있습니다. 자세한 내용은 다음을 참조하세요.Red Hat 블로그.

Red Hat 소개

Red Hat은 기업이 핵심 데이터 센터에서 네트워크 에지에 이르기까지 플랫폼과 환경 전반에서 더 쉽게 작업할 수 있도록 강화된 솔루션을 제공합니다.

© 2024 Red Hat, Inc.