【问题标题】:JMX Integration with Apache CXFJMX 与 Apache CXF 的集成
【发布时间】:2014-05-26 08:27:37
【问题描述】:

我需要使用 JMX 监控 CXF 服务器并关注 CXF Documentation。我使用tomcat,以下是我的cxf.xml文件的内容,位于/home/kalpa/applications/apache-tomcat-7.0.54/webapps/java_first_jaxws/WEB-INF/classes

<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation=" http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd">

<bean id="org.apache.cxf.management.InstrumentationManager" class="org.apache.cxf.management.jmx.InstrumentationManagerImpl">
  <property name="bus" ref="cxf" />
  <property name="enabled" value="true" />
  <property name="JMXServiceURL " value="service:jmx:rmi:///jndi/rmi://localhost:9914/jmxrmi" />
</bean>

</beans>

但我无法使用jconsole 监控数据。连接没有本地条目。

这可能是什么问题?

【问题讨论】:

    标签: java apache tomcat cxf jmx


    【解决方案1】:

    我不知道您的问题是否仍然存在,但这是我的配置:

      <cxf:bus bus="cxf">
        <cxf:properties>
          <entry key="bus.jmx.enabled" value="true"/>
          <entry key="bus.jmx.JMXServiceURL" value="service:jmx:rmi:///jndi/rmi://localhost:9914/jmxrmi"/>
        </cxf:properties>
      </cxf:bus>
    

    代替你的:

    <bean id="org.apache.cxf.management.InstrumentationManager" class="org.apache.cxf.management.jmx.InstrumentationManagerImpl">
      <property name="bus" ref="cxf" />
      <property name="enabled" value="true" />
      <property name="JMXServiceURL " value="service:jmx:rmi:///jndi/rmi://localhost:9914/jmxrmi" />
    </bean>
    

    我正在使用 CXF 3.0.2 和 JRE 1.6.0_27 中的 jconsole ...

    这工作正常:

    jconsole connection string

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-02-01
      • 1970-01-01
      • 1970-01-01
      • 2011-08-21
      • 1970-01-01
      • 2012-09-01
      相关资源
      最近更新 更多