Dear sekaijin,
You are right - 2.3.x and earlier versions of Karaf internally used 
org.apache.karaf.management.MBeanRegistrer for all JMX related stuff. This 
class was visible to everyone and could be referenced from user bundles.

Starting from 3.x Karaf switched to aries-jmx and uses whiteboard pattern to 
register mbeans. It is much more handy cause you do not need to wait for 
MBeanServer reference in your configuration and eventual failure of MBean 
registration will not block your bundle from starting up.

Best regards,
Lukasz
--
Apache Karaf Committer & PMC
Twitter: ldywicki
Blog: http://dywicki.pl
Code-House - http://code-house.org

> Wiadomość napisana przez sekaijin <[email protected]> w dniu 10 maj 2016, o 
> godz. 13:38:
> 
> I'm not sure this is the right solution.
> I was inspired by:
> karaf/jms/src/main/resources/OSGI-INF/blueprint/jms-core.xml
> 
> it works.
> A+JYT
> 
> 
> 
> --
> View this message in context: 
> http://karaf.922171.n3.nabble.com/Hawto-declare-MBean-using-Blueprint-on-karaf-3-0-X-tp4046559p4046560.html
> Sent from the Karaf - Dev mailing list archive at Nabble.com.

Reply via email to