繁体   English   中英

与weblogic 12.1.2的spring集成jmx连接问题

[英]spring integration jmx connection issue with weblogic 12.1.2

我们有spring集成应用程序,我们通过使用以下配置启用了JMX,但不知何故,当我连接到Weblogic时,我没有看到jConsole中的那些JMX bean或任何spring bean。 我们做错了什么? 我确实看到其他weblogic特定的jmx bean在jconsole中可见,但是没有任何东西来自spring。

<context:mbean-export registration="ignoreExisting"/>
<context:mbean-server/>
<int-jmx:mbean-export default-domain="testApp"/>

我认为你的问题在这里:

* <p>By default, {@code MBeanServerFactoryBean} will always create
* a new {@code MBeanServer} even if one is already running. To have
* the {@code MBeanServerFactoryBean} attempt to locate a running
* {@code MBeanServer} first, set the value of the
* "locateExistingServerIfPossible" property to "true".

因此,应用程序上下文随newMBeanServer一起提供,而不是环境中已存在的那个。

UPDATE

但是,命名空间支持不提供该选项。 因此请考虑使用泛型bean定义:

<bean id="mbeanServer" class="org.springframework.jmx.support.MBeanServerFactoryBean"
    p:locateExistingServerIfPossible="true" />

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM