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.
The Fuse Message Broker Web console has two main areas:
broker administration—
http://
hostName
:portNum
/adminroute 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
.
To change the port at which the embedded Web console is accessed, you need to edit the broker's configuration file to as follows:
Open the broker's configuration file in an XML, or text, editor.
The configuration file is typically called
activemq.xml
and is located in theconf
folder.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.
Locate the
property
element whosename
attribute is set toconnectors
.It will look similar to Example 3.1.
Example 3.1. 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>
In the
property
element with thename
attribute set toport
, set thevalue
attribute to the number of port at which you want to access the Web console.
The configuration shown in Example 3.2 configures
the Web console such that the routing console can be accessed from
http://localhost:8563/camel
.
Example 3.2. 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>
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 Web Console Security in Security Guide for details.