...
Name | Value | Default |
---|---|---|
enabled | If the JMX integration should be enabled or not | false |
bus | The CXF bus instance to register the JMX extension with | None |
server | An optional reference to an MBeanServer instance to register MBeans with. If not supplied, an MBeanServer is resolved using the "usePlatformMBeanServer" and/or "serverName" optoinsoptions. | None |
usePlatformMBeanServer | If true and no reference to an MBeanServer is supplied, the JMX extension registers MBeans with the platform MBean server. | false |
serverName | If supplied, usePlatformMBeanServer is false, and no reference to an MBeanServer is supplied, the JMX extension registers MBeans with the MBean server carrying this name. | None |
createMBServerConnectorFactory | If true, a connector is created on the MBeanServer. | true |
threaded | Determines if the creation of the MBean connector is performed in this thread or in a separate thread. Only relevant if createMBServerConnectorFactory is true. | false |
daemon | Determines if the MBean connector creation thread is marked as a daemon thread or not. Only relevant if createMBServerConnectorFactory is true. | false |
JMXServiceURL | The URL of the connector to create on the MBeanServer. Only relevant if createMBServerConnectorFactory is true. | service:jmx:rmi:///jndi/rmi://localhost:9913/jmxrmi |
environment | This is a map that is used to configure the RMI environment. | None |
The MBean instrumentation provided by the above configuration will provide generic information about the WSDL supported by the web service as well as web service administration commands. To see performance metrics of the SOAP call processing, further configuration is required – these are disabled by default to avoid unnecessary runtime overhead.
...
Anchor | ||||
---|---|---|---|---|
|
Configuring remote access
Starting from CXF 3.3.6, it is possible to configure remote access to the RMI Connector via the "enviroment" variable. Here is an example:
Code Block | ||||
---|---|---|---|---|
| ||||
<bean id="org.apache.cxf.management.InstrumentationManager" class="org.apache.cxf.management.jmx.InstrumentationManagerImpl" init-method="init">
<property name="enabled" value="true"/>
<property name="bus" ref="cxf"/>
<property name="JMXServiceURL" value="service:jmx:rmi:///jndi/rmi://localhost:9914/jmxrmi" />
<property name="environment">
<map xmlns="http://www.springframework.org/schema/beans">
<entry xmlns="http://www.springframework.org/schema/beans"
key="jmx.remote.x.password.file" value="./target/classes/jmx.password"/>
<entry xmlns="http://www.springframework.org/schema/beans"
key="jmx.remote.x.access.file" value="./target/classes/jmx.access"/>
</map>
</property>
</bean>
|
where jmx.password and jmx.access contain something like:
- jmx.password: admin cxf
- jmx.access: admin readwrite
Configuring CXF to Use the ServiceMix 4 MBeanServer
...