You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by FredZhu <me...@fengsage.com> on 2010/08/09 11:13:39 UTC

How custom mbean in smx ?

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
-- 
View this message in context: http://servicemix.396122.n5.nabble.com/How-custom-mbean-in-smx-tp2268596p2268596.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Re: Re: How custom mbean in smx ?

Posted by me <me...@fengsage.com>.
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
>>
>

Re: Re: How custom mbean in smx ?

Posted by me <me...@fengsage.com>.
hi jean,

I directly using jmx.xml , but when i start servicemix , using jconsole can't find the custom mbean.following is my config

  <util:map id="jmxConnectorEnvironment">
      <entry key="jmx.remote.authenticator">
        <sm:jmxJaasAuthenticator authenticationService="#authenticationService"/>
      </entry>
      <entry key="com.hongcheng.novaesb:type:Management,system=systemMbean" value-ref="systemMbean"/>
  </util:map>

  <bean id="systemMbean" class="com.hongcheng.novaesb.mbean.impl.SystemMbeanImpl"></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
>>
>

Re: How custom mbean in smx ?

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
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
>>
>

Re: Re: How custom mbean in smx ?

Posted by me <me...@fengsage.com>.
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
>

Re: How custom mbean in smx ?

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
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
>

Re: Re: How custom mbean in smx ?

Posted by me <me...@fengsage.com>.
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

Re: How custom mbean in smx ?

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
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