You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by "Nepali, Sonam (GE Healthcare, consultant)" <So...@ge.com> on 2009/09/22 19:45:29 UTC
cxf jmx management integration with Weblogic mbeanserver
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
Re: cxf jmx management integration with Weblogic mbeanserver
Posted by Daniel Kulp <dk...@apache.org>.
On Wed September 23 2009 10:56:20 am Nepali, Sonam (GE Healthcare, consultant)
wrote:
> Dan
>
> I got it to work on the latest 2.2.3 CXF version. I don't see a way to
> set the mbeanserver in the 2.1.3 version. The 2.1.3 version does a
> lookup of a mbeanserver with a name of "org.apache.cxf".
Yea. Most of the extra management flags were added in 2.1.6. Thus, they
wouldn't be in 2.1.3.
Dan
>
> Thanks for your feedback.
>
> Sonam
> CXF User
>
>
> -----Original Message-----
> From: Daniel Kulp [mailto:dkulp@apache.org]
> Sent: Tuesday, September 22, 2009 12:17 PM
> To: users@cxf.apache.org
> Cc: Nepali, Sonam (GE Healthcare, consultant)
> Subject: Re: cxf jmx management integration with Weblogic mbeanserver
>
>
>
> The InstrumentationManagerImpl that you configure in your spring config
> has a
> bunch of properties that can be used to tell it what MBeanServer to use.
> If
> using the latest CXF releases, there is a "usePlatformMBeanServer"
> true/false flag that makes it just call
> ManagementFactory.getPlatformMBeanServer() which
> may just be the Weblogic one. Not really sure. You may also need
> to set
> createMBServerConnectorFactory to false.
>
> If you know the MBeanServer name for the weblogic server, you can set
> the serverName property and it should look it up.
>
> Hopefully that provides some information for you to try.
>
> Dan
>
>
> On Tue September 22 2009 1:45:29 pm Nepali, Sonam (GE Healthcare,
> consultant)
>
> wrote:
> > 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
>
> --
> Daniel Kulp
> dkulp@apache.org
> http://www.dankulp.com/blog
>
--
Daniel Kulp
dkulp@apache.org
http://www.dankulp.com/blog
RE: cxf jmx management integration with Weblogic mbeanserver
Posted by "Nepali, Sonam (GE Healthcare, consultant)" <So...@ge.com>.
I am using the Weblogic provided runtime mbeanServer through the JNDI
reference. There could be other mbeanServers running but I want to use
the Weblogic provided runtime.
<bean id="mbeanServer"
class="org.springframework.jndi.JndiObjectFactoryBean">
<property name="jndiName"
value="java:comp/env/jmx/runtime"/>
</bean>
thanks
Sonam
CXF User
-----Original Message-----
From: Eoghan Glynn [mailto:eoglynn@gmail.com]
Sent: Wednesday, September 23, 2009 10:26 AM
To: users@cxf.apache.org
Subject: Re: cxf jmx management integration with Weblogic mbeanserver
Hi Sonam,
Just out of interest, did you pull in the platformMBeanServer or the
WebLogic one from JNDI/MBeanHome?
/Eoghan
2009/9/23 Nepali, Sonam (GE Healthcare, consultant)
<So...@ge.com>
> Dan
>
> I got it to work on the latest 2.2.3 CXF version. I don't see a way
> to set the mbeanserver in the 2.1.3 version. The 2.1.3 version does a
> lookup of a mbeanserver with a name of "org.apache.cxf".
>
> Thanks for your feedback.
>
> Sonam
> CXF User
>
>
> -----Original Message-----
> From: Daniel Kulp [mailto:dkulp@apache.org]
> Sent: Tuesday, September 22, 2009 12:17 PM
> To: users@cxf.apache.org
> Cc: Nepali, Sonam (GE Healthcare, consultant)
> Subject: Re: cxf jmx management integration with Weblogic mbeanserver
>
>
>
> The InstrumentationManagerImpl that you configure in your spring
> config has a bunch of properties that can be used to tell it what
> MBeanServer to use.
> If
> using the latest CXF releases, there is a "usePlatformMBeanServer"
> true/false flag that makes it just call
> ManagementFactory.getPlatformMBeanServer() which
> may just be the Weblogic one. Not really sure. You may also need
> to set
> createMBServerConnectorFactory to false.
>
> If you know the MBeanServer name for the weblogic server, you can set
> the serverName property and it should look it up.
>
> Hopefully that provides some information for you to try.
>
> Dan
>
>
> On Tue September 22 2009 1:45:29 pm Nepali, Sonam (GE Healthcare,
> consultant)
> wrote:
> > 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
> >
>
> --
> Daniel Kulp
> dkulp@apache.org
> http://www.dankulp.com/blog
>
Re: cxf jmx management integration with Weblogic mbeanserver
Posted by Eoghan Glynn <eo...@gmail.com>.
Hi Sonam,
Just out of interest, did you pull in the platformMBeanServer or the
WebLogic one from JNDI/MBeanHome?
/Eoghan
2009/9/23 Nepali, Sonam (GE Healthcare, consultant) <So...@ge.com>
> Dan
>
> I got it to work on the latest 2.2.3 CXF version. I don't see a way to
> set the mbeanserver in the 2.1.3 version. The 2.1.3 version does a
> lookup of a mbeanserver with a name of "org.apache.cxf".
>
> Thanks for your feedback.
>
> Sonam
> CXF User
>
>
> -----Original Message-----
> From: Daniel Kulp [mailto:dkulp@apache.org]
> Sent: Tuesday, September 22, 2009 12:17 PM
> To: users@cxf.apache.org
> Cc: Nepali, Sonam (GE Healthcare, consultant)
> Subject: Re: cxf jmx management integration with Weblogic mbeanserver
>
>
>
> The InstrumentationManagerImpl that you configure in your spring config
> has a
> bunch of properties that can be used to tell it what MBeanServer to use.
> If
> using the latest CXF releases, there is a "usePlatformMBeanServer"
> true/false flag that makes it just call
> ManagementFactory.getPlatformMBeanServer() which
> may just be the Weblogic one. Not really sure. You may also need
> to set
> createMBServerConnectorFactory to false.
>
> If you know the MBeanServer name for the weblogic server, you can set
> the serverName property and it should look it up.
>
> Hopefully that provides some information for you to try.
>
> Dan
>
>
> On Tue September 22 2009 1:45:29 pm Nepali, Sonam (GE Healthcare,
> consultant)
> wrote:
> > 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
> >
>
> --
> Daniel Kulp
> dkulp@apache.org
> http://www.dankulp.com/blog
>
RE: cxf jmx management integration with Weblogic mbeanserver
Posted by "Nepali, Sonam (GE Healthcare, consultant)" <So...@ge.com>.
Dan
I got it to work on the latest 2.2.3 CXF version. I don't see a way to
set the mbeanserver in the 2.1.3 version. The 2.1.3 version does a
lookup of a mbeanserver with a name of "org.apache.cxf".
Thanks for your feedback.
Sonam
CXF User
-----Original Message-----
From: Daniel Kulp [mailto:dkulp@apache.org]
Sent: Tuesday, September 22, 2009 12:17 PM
To: users@cxf.apache.org
Cc: Nepali, Sonam (GE Healthcare, consultant)
Subject: Re: cxf jmx management integration with Weblogic mbeanserver
The InstrumentationManagerImpl that you configure in your spring config
has a
bunch of properties that can be used to tell it what MBeanServer to use.
If
using the latest CXF releases, there is a "usePlatformMBeanServer"
true/false flag that makes it just call
ManagementFactory.getPlatformMBeanServer() which
may just be the Weblogic one. Not really sure. You may also need
to set
createMBServerConnectorFactory to false.
If you know the MBeanServer name for the weblogic server, you can set
the serverName property and it should look it up.
Hopefully that provides some information for you to try.
Dan
On Tue September 22 2009 1:45:29 pm Nepali, Sonam (GE Healthcare,
consultant)
wrote:
> 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
>
--
Daniel Kulp
dkulp@apache.org
http://www.dankulp.com/blog
Re: cxf jmx management integration with Weblogic mbeanserver
Posted by Daniel Kulp <dk...@apache.org>.
The InstrumentationManagerImpl that you configure in your spring config has a
bunch of properties that can be used to tell it what MBeanServer to use. If
using the latest CXF releases, there is a "usePlatformMBeanServer" true/false
flag that makes it just call ManagementFactory.getPlatformMBeanServer() which
may just be the Weblogic one. Not really sure. You may also need to set
createMBServerConnectorFactory to false.
If you know the MBeanServer name for the weblogic server, you can set the
serverName property and it should look it up.
Hopefully that provides some information for you to try.
Dan
On Tue September 22 2009 1:45:29 pm Nepali, Sonam (GE Healthcare, consultant)
wrote:
> 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
>
--
Daniel Kulp
dkulp@apache.org
http://www.dankulp.com/blog
Re: cxf jmx management integration with Weblogic mbeanserver
Posted by Eoghan Glynn <eo...@gmail.com>.
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) <So...@ge.com>
> 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
>