Thanks jean, I success create mbean in smx. configuratoin like following

file:conf/jmx.xml

  <bean id="exporter" class="org.springframework.jmx.export.MBeanExporter" 
lazy-init="false">
<property name="beans">
<map>
<entry key="com.hongcheng.novaesb:name=Monitor" value-ref="monitorMbean"/>
</map>
</property>
<property name="server" ref="jmxServer"/>
  </bean>
  <bean id="monitorMbean" 
class="com.hongcheng.novaesb.mbean.impl.MonitorMbeanImpl"></bean>




From: Jean-Baptiste_Onofr 
Date: 2010-08-09  18:13:13 
To: users 
Cc:  
Subject: Re: How custom mbean in smx ? 
 
Using SMX3, you can directly use conf/jmx.xml spring descriptor.
Regards
JB
On 08/09/2010 12:09 PM, me wrote:
> Thank you help, I'm using smx3,I will try it.
>
>
>
> From: Jean-Baptiste_Onofr
> Date: 2010-08-09  17:39:09
> To: users
> Cc:
> Subject: Re: How custom mbean in smx ?
>
> If you use SMX4, the JMX server configuration is defined in
> etc/org.apache.karaf.management.cfg file.
> You can connect to the JMX server and register your bean in it.
> You can deploy a Spring file in the deploy directory to automatically
> register MBean at startup for example.
> Regards
> JB
> On 08/09/2010 11:26 AM, me wrote:
>> Hi Jean,
>>
>> Yes, i want to create a custom MBean in smx, But how i register custom Mbean 
>> in SMX ? where config file ?
>>
>> using spring mbean server ?
>>
>> Thanks and regards
>> Fred
>>
>>
>>
>> From: Jean-Baptiste_Onofr
>> Date: 2010-08-09  17:19:16
>> To: users
>> Cc:
>> Subject: Re: How custom mbean in smx ?
>>
>> Hi Fred,
>> by "own MBean", what do you mean exactly ?
>> SMX automatically register MBeans per component, per endpoint, etc.
>> If you want to create a custom MBean, you need to register it in the
>> MBean server.
>> Regards
>> JB
>> On 08/09/2010 11:13 AM, FredZhu wrote:
>>>
>>> Hi all,
>>>
>>>       I'm new servicemix, i want to know how to custom own mbean in smx ? i
>>> want to using jconsole remote get some info from own mbean.
>>>
>>> Thanks and regards
>>> Fred
>>
>

Reply via email to