Hi Sonam,
Depending on your WebLogic version, your could try using the Spring
WebLogicMBeanServerFactoryBean[1] to access the WebLogic MBeanServer (which
is apparently accessible via a proprietary MBeanHome API in versions
preceeding 9.x) and then inject this into the CXF InstrumentationManager
bean.
In more recent versions of WebLogic (9.x and later), apparently the WebLogic
MBeanServer is more easily accessible via JNDI. You could try using the
Spring JndiObjectFactoryBean to the do the JNDI lookup, something like the
following:
<bean id="org.apache.cxf.management.InstrumentationManager"
class="org.apache.cxf.management.jmx.InstrumentationManagerImpl">
<property name="enabled" value="true" />
<property name="bus" ref="cxf" />
<property name="createMBServerConnectorFactory" value="false"/>
<property name="server">
<bean class="org.springframework.jndi.JndiObjectFactoryBean">
<property name="jndiName" value="java:comp/env/jmx/runtime"/>
</bean>
</property>
</bean>
Cheers,
Eoghan
[1]
http://static.springsource.org/spring/docs/2.5.6/api/org/springframework/jmx/support/WebLogicMBeanServerFactoryBean.html
2009/9/22 Nepali, Sonam (GE Healthcare, consultant) <[email protected]>
> Hi
>
> How do I integrate the CXF JMX mbeans into a Weblogic MBeanServer? I would
> like to access all of the mbeans through one address instead of having to
> specify different addresses for accessing the WebLogic server mbeans
> (service:jmx:rmi:///jndi/rmi://localhost:9999/jmxrmi) and one for CXF
> MBeans (service:jmx:rmi:///jndi/rmi://localhost:9914/jmxrmi).
>
> thanks
>
>
>
>
> Sonam
>
> CXF User
>