My fault - I had some beans in the web context - and some in the parent
application context - thus some beans were out of scope for wiring. All OK
now.

2011/6/23 Sergey Beryozkin <[email protected]>

> Hi
>
> On Wed, Jun 22, 2011 at 12:25 PM, David Karlsen <[email protected]>
> wrote:
> > hi.
> >
> > I've enabled jmx like this:
> >
> > <bean id="responseTimeFeature"
> >        class="org.apache.cxf.management.interceptor.ResponseTimeFeature"
> />
> >
> >    <bean id="CounterRepository"
> > class="org.apache.cxf.management.counters.CounterRepository">
> >        <property name="bus" ref="cxf" />
> >    </bean>
> >
> >    <bean id="org.apache.cxf.management.InstrumentationManager"
> > class="org.apache.cxf.management.jmx.InstrumentationManagerImpl">
> >        <property name="bus" ref="cxf" />
> >        <property name="server" ref="mbeanServer" />
> >        <property name="enabled" value="true" />
> >        <property name="createMBServerConnectorFactory" value="false" />
> >    </bean>
> >
> >
> > I let spring lookup the mbeanServer:
> >    <context:mbean-export default-domain="PAYS"
> >        registration="failOnExisting" server="mbeanServer" />
> >    <context:mbean-server />
> >
> > So I'd expect stats on service requests - but nothing.
> > The only thing registered from CXF into JMX is the actual bus - not the
> > services.
> > What am i doing wrong?
> >
>
> Can you please check it with the default MBeanServer - just to see if
> CXF has some issues registering MBeans to the one linked to above ?
>
> Cheers, Sergey
>
> >
> > --
> > David J. M. Karlsen - http://www.linkedin.com/in/davidkarlsen
> >
>



-- 
--
David J. M. Karlsen - http://www.linkedin.com/in/davidkarlsen

Reply via email to