4
我在Tomcat服务器中使用CXF公开Web服务。 我想在JMX中公开一些像ResponseTimeFeature提出的性能信息。无法激活CXF ResponseTimeFeature
我CXF-beans.xml的文件如下:
<cxf:bus bus="cxf" id="MyBus">
<cxf:properties>
<entry key="bus.jmx.enabled" value="true" />
</cxf:properties>
</cxf:bus>
<bean id="CounterRepository" class="org.apache.cxf.management.counters.CounterRepository">
<property name="bus" ref="cxf" />
</bean>
<jaxws:endpoint id="analyserEndpoint" implementor="#analyserImpl" address="/analyser">
<jaxws:features>
<bean class="org.apache.cxf.management.interceptor.ResponseTimeFeature" />
</jaxws:features>
</jaxws:endpoint>
这是非常相似,在CXF JMX page解释。
问题是,当我在[默认地址(服务:jmx:rmi:/// jndi/rmi:// localhost:9913/jmxrmi)]上使用jconsole进行连接时,我看不到任何性能的MBean。我有MyBus的管理信息和里面的服务。但是没有任何关于ResponseTime(即使在SOAP-UI对服务进行负载测试之后)。
我在Web应用程序中记录以下错误启动:
2012-09-10 15:13:19,692 ERROR org.apache.cxf.management.jmx.InstrumentationManagerImpl - Could not start JMX connector server : java.io.IOException: Cannot bind to URL [rmi://localhost:9913/jmxrmi]: javax.naming.NameAlreadyBoundException: jmxrmi [Root exception is java.rmi.AlreadyBoundException: jmxrmi]
是否有人对如何解决这个问题的任何想法?
在此先感谢。