Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Not A Problem
-
3.1.1
-
None
-
None
-
JDK 1.8
-
Unknown
Description
We are creating the InstrumentationManager according to documentation and this all works fine in CXF 2.7.12.
<import resource="classpath:META-INF/cxf/cxf.xml"/> ... <bean id="org.apache.cxf.management.InstrumentationManager" class="org.apache.cxf.management.jmx.InstrumentationManagerImpl"> <property name="enabled" value="true" /> <property name="bus" ref="cxf" /> <property name="usePlatformMBeanServer" value="true" /> </bean>
But after a little debugging, I noticed that in CXF 3.1.1 the 'register' method in InstrumentationManagerImp is deprecated and the code has been moved to the end of the 'init' method though there is a difference. CXF 2.7.12 had:
bus.setExtension(this, InstrumentationManager.class);
but CXF 3.1.1 has:
this.bus.setExtension(this, BusLifeCycleListener.class);
Could this be the cause that performance counters through MBeans aren't working. Or do we need to change the configuration?