1 Reply Latest reply on May 25, 2010 8:43 AM by Freeman(Yue) Fang

    Custom MBean within SMX 4.2

    Thomas Guenter Newbie



      I'd like to implement an MBean for my component within SMX 4.2 but couldn't find any information about how to publish my MBean. The only information I found is an old post by Ulhas which talks about a Management Context but I couldn't find such a context in the API and therefore couldn't get a handle on it.




      Could someone give me a hint how to publish such an MBean?


      Thanks in advance!


        • 1. Re: Custom MBean within SMX 4.2
          Freeman(Yue) Fang Master



          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


          to get the OSGi service, then you can use mbeanServer to publish your MBean