2 Replies Latest reply on Apr 19, 2010 8:54 AM by rafaelcba

    JMX plugin extension

    rafaelcba

      Hello!

       

      I want to develop a plugin to manage Schedule MBeans (org.jboss.varia.scheduler.Scheduler) deployed on JBoss AS...

       

      Because JBAS Schedulers are services defined as a MBean (xxx-service.xml descriptor packaged inside a .SAR) they doesn´t has a pattern name to query on JMX MBean server. But it is a org.jboss.varia.scheduler.Scheduler type. Is there any way to discovery a JMX MBean on JBoss AS by a class type?

       

      I saw that org.rhq.plugins.jmx.MBeanResourceDiscoveryComponent use objectName to find a MBean. But when MBean doesn´t has a pattern name defined we have a problem...

       

      What would be a better way to implement a Plugin to manage this type of MBean on JBoss AS?

        • 1. Re: JMX plugin extension
          pilhuhn

          Rafael,

           

          I think this will not be so easy, as org.rhq.plugins.jmx.MBeanResourceDiscoveryComponent only supports querying

          by ObjectName(pattern) today.

           

          Yyou would need to obtain all MBeans that could potentially match and then filter yourself in

          DiscoveryComponent.discoverResources() for the MBeans that match.

          1 of 1 people found this helpful
          • 2. Re: JMX plugin extension
            rafaelcba

            Thanks Heiko!