2016-09-19 9 views
1

次の設定を使用してJMXを有効にしたSpring統合アプリケーションがありますが、Weblogicに接続するとJMX BeansまたはjConsoleのスプリングBeanが表示されません。私たちが間違っていることは何ですか?他のweblogic固有のjmx beanはjconsoleでは見えますが、春からは見えません。spring integration jmx weblogicとの接続に関する問題12.1.2

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

答えて

0

私はあなたの問題はここにあると思う:

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

ためのアプリケーション・コンテキストがすでに環境に存在する1つの代わりにnewMBeanServerが供給されています。

UPDATE

名前空間のサポートは、しかし、そのオプションを提供していません。 MBeanの輸出登録=「ignoreExisting」:名前空間の設定<コンテキストを次を経由して、既存のMBeanサーバーを探すために、「locateExistingServerIfPossible」はい

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

が、私は、このプロパティを設定する方法を見つけることができません。そのため、一般的なBean定義を使用することを考えます/> <コンテキスト:mbean-server /> user509755

+0

私の答えは更新してください。 –

+0

このプロパティがtrueの場合、speceficポートが検索されますか?私はweblogic上のポートを変更したので、特定のポート上の既存のmbeanサーバーを発見したいと思っています。 – user509755

関連する問題