karaf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Łukasz Dywicki <l...@code-house.org>
Subject Re: Hawto declare MBean using Blueprint on karaf 3.0.X ?
Date Wed, 11 May 2016 08:10:18 GMT
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,
Apache Karaf Committer & PMC
Twitter: ldywicki
Blog: http://dywicki.pl
Code-House - http://code-house.org

> Wiadomość napisana przez sekaijin <jyterrien@yahoo.fr> 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.
> --
> 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.

View raw message