By default a broker is set up to allow for JMX management. It uses the JVM's MBean
server and creates its own JMX connector at
service:jmx:rmi:///jndi/rmi://
.
If the default configuration does not meet the needs of the deployment environment, the broker
provides configuration properties for customizing most aspects of its JMX behavior. For
instance, you can completely disable JMX for a broker. You can also force the broker to
create its own MBean server.hostname
:1099/jmxrmi
By default JMX is enabled for a Fuse Message Broker broker. To disable JMX entirely you simply
set the broker
element's useJmx
attribute to false
. This will stop the broker from exposing itself
via JMX.
![]() | Important |
---|---|
Disabling JMX will also disable the command-line administrative tools. |
In a production environment it is advisable to secure the access to your brokers' management interfaces. The steps to secure access to a broker's JMX interface depends on the JMX connector the broker uses.
If the broker creates its own JMX connector you configure the security options directly in the broker's configuration. If the broker uses the JMX connector provided by the JVM, you need to modify the scripts used to start the broker to pass the security configuration to the JVM.
For a detailed description of the steps required see JMX Security in Security Guide.
If the default JMX behavior is not appropriate for your deployment environment, you can
customize how the broker exposes its MBeans. To customize a broker's JMX configuration, you
add a managementContext
child element to the broker's
broker
element. The managementContext
element uses a managementContext
child to configure the broker.
The attributes of the inner managementContext
element specify the
broker's JMX configuration.
Table 9.1 describes the configuration properties for controlling a broker's JMX behavior.
Table 9.1. Broker JMX Configuration Properties
Example 9.1 shows configuration for a broker that will only use the JVM's MBean server and will not create its own JMX connector.
Example 9.1. Configuring a Broker's JMX Connection
<broker ... > ... <managementContext> <managementContext createMBeanServer="false" createConnector="false" /> </managementContext> ... </broker>