CXF JMX Integration in JBossWS-CXF

Solution Verified - Updated -

Issue

  • We use CXF JMX instrumentation for statistics so we configure the intrumentation properties in the Bus we defined like below:
 <bean id="CounterRepository"     class="org.apache.cxf.management.counters.CounterRepository">
      <property name="bus" ref="cxf" ></property>    
    </bean> 
    <cxf:bus iid="${project.artifactId}-cxf-bus" >
        <cxf:properties>
            <entry key="bus.jmx.enabled" value="true" ></entry>
            <entry key="bus.jmx.usePlatformMBeanServer" value="true" ></entry>
            <entry key="bus.jmx.createMBServerConnectorFactory" value="false" ></entry>
        </cxf:properties>
        <cxf:features>
            <cxf:logging ></cxf:logging>
            ${cxf.bus.features}
            <bean name="idFeature" class="com.redhat.MyFeature" ></bean>
        </cxf:features>
    </cxf:bus>
  • We want to have one bus by webapp deployed in JBoss, with an unique identifier corresponding to the webapp name.
  • Except spring configuration, we don't have any other option to achieve the same on the CXF Bus instance. What the preferred way to do this in JBossWS-CXF stack ?

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 6.x
  • JBossWS-CXF

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.