1 2 Previous Next 16 Replies Latest reply on Aug 7, 2013 6:26 AM by vikingsteve Go to original post
      • 15. Re: (JMX) Simplest way to use a custom MBean in Fuse?
        willem.jiang

        If you just want to expose your MBean through JMX inside of Fuse, you can use the service which Freeman showed you.

        Just like get the service of javax.management.MBeanServer, and register the you MBean there.

        You don't need to register the MBean through the CXF InstrumentationManagerImpl

        • 16. Re: (JMX) Simplest way to use a custom MBean in Fuse?
          vikingsteve

          For those that are wondering, here is the solution (add to your blueprint.xml)

           

          <bean id="mbeanRegistrer" class="org.apache.karaf.management.MBeanRegistrer" init-method="init">
              <property name="bundleContext" ref="blueprintBundleContext"/>
              <property name="mbeans">
                  <map>
                  <entry value="com.mycompany.myservice:type=admin,name=myadminBean" key-ref="myadminBean"/>
                  </map>
              </property>
          </bean>

           

          ...thanks to my colleague, Yngve

          1 2 Previous Next