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

spring与weblogic 12.1.2的集成jmx连接问题,spring,spring-integration,weblogic12c,Spring,Spring Integration,Weblogic12c,我们有一个spring集成应用程序,其中我们通过使用以下配置启用了JMX,但不知何故,当我连接到Weblogic时,我在jConsole中没有看到那些JMX bean或任何spring bean。我们做错了什么?我确实看到其他特定于weblogic的jmx bean在jconsole中可见,但在spring中没有 <context:mbean-export registration="ignoreExisting"/> <context:mbean-server/> &l

我们有一个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".

我认为你的问题在于:

* <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".

是的,但我找不到如何设置此属性“LocateExistingServerIffable”以通过以下命名空间配置查找现有MBean服务器,因此当此属性为true时,它是否查找specefic端口?由于我更改了weblogic上的端口,我想确保它在特定端口上发现现有的mbean服务器。感谢Artem提供了“MBeanServerFactoryBean”的详细信息,这很有帮助,而且是现成的。是的,但我无法找到如何设置此属性“LocateExistingServerIfEnabled”,以便通过以下命名空间配置查找现有MBean服务器。因此,当此属性为true时,它是否查找specefic端口?由于我更改了weblogic上的端口,我想确保它在特定端口上发现现有的mbean服务器。感谢Artem提供了“MBeanServerFactoryBean”的详细信息,这有助于开箱即用