Yeah, I think so.
In SMX4, there's already a javax.management.MBeanServer instance published as OSGi Service, so in your code, you can grap this OSGi Service.
Or use spring-dm/blueprint to inject this OSGi Service into your bean.
Using blueprint, something like
<reference id="mbeanServer"
               interface="javax.management.MBeanServer"
               availability="mandatory"/>
to get the OSGi service, then you can use mbeanServer in your bean.

Freeman

On 2010-5-12, at 上午5:04, gnanda wrote:


Is it possible to create my own MBean with my management methods and deploy
in servicemix?
With jdk 1.5 or higher we define our MBean using
javax.management.MBeanServer
If I create a mbean then how would I deploy it in servicemix?

--
View this message in context: 
http://old.nabble.com/creating-my-own-MBean-in-servicemix-4.2-tp28529435p28529435.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.



--
Freeman Fang
------------------------
Open Source SOA: http://fusesource.com

Reply via email to