Red Hat DocumentationFuse Message BrokerToggle FramesPrintFeedback

Using the Embedded Console

Overview

The Web console is loaded along with the broker and deployed into an embedded Jetty container. By default, the console is insecure and accessed on port 8161.

The default configuration can easily be modified to add security and change the port number.

Accessing the console

The Fuse Message Broker Web console has two main areas:

  • broker administration—http://hostName:portNum/admin

  • route administration—http://hostName:portNum/camel

For example, to access the default broker administration console on your local machine, you would point your Web browser at http://localhost:8161/admin.

Changing the port

To change the port at which the embedded Web console is accessed, you need to edit the broker's configuration file to as follows:

  1. Open the broker's configuration file in an XML, or text, editor.

    The configuration file is typically called activemq.xml and is located in the conf folder.

  2. Determine if the configuration imports the Jetty configuration used by the Web consoles.

    The default configuration includes an import element that imports the Jetty configuration.

    • If the broker configuration imports the Jetty configuration, open the Jetty configuration file in your text editor.

    • If the Jetty configuration is included in the broker's configuration file, then you can locate the required configuration in the broker's configuration.

  3. Locate the property element whose name attribute is set to connectors.

    It will look similar to Example 2.

    Example 2. Jetty Connector Configuration

    ...
    <property name="connectors">
      <list>
        <bean id="Connector" class="org.eclipse.jetty.server.nio.SelectChannelConnector">
          <property name="port" value="8161" />
        </bean>
      </list>
    </property>

  4. In the property element with the name attribute set to port, set the value attribute to the number of port at which you want to access the Web console.

The configuration shown in Example 3 configures the Web console such that the routing console can be accessed from http://localhost:8563/camel.

Example 3. Configuring the Web Console's Port

...
<property name="connectors">
  <list>
    <bean id="Connector" class="org.eclipse.jetty.server.nio.SelectChannelConnector">
      <property name="port" value="8536" />
    </bean>
  </list>
</property>

Securing the console

The security for the Web console is provided by the Web container in which it is deployed. For the embedded instance of the Web console, you need to configure the embedded Jetty container's security by editing conf/jetty.xml.

See ???? for details.

Comments powered by Disqus