Uploaded image for project: 'Karaf'
  1. Karaf
  2. KARAF-3952

Be able to provide full ObjectName to registerMBean()

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.0.1
    • Fix Version/s: 4.1.0
    • Component/s: karaf
    • Labels:
      None

      Description

      Karaf util provides the convenient registerMBean() method. However, when you want to provide a full ObjectName, the workaround is to use:

              Hashtable props = new Hashtable();
              props.put("jmx.objectname", "org.apache.karaf.cellar:type=core,name=" + System.getProperty("karaf.name"));
              coreMBeanRegistration = bundleContext.registerService(getInterfaceNames(cellarMBean), cellarMBean, props);
      

      To simplify the writing, it would be great that the registerMBean() method accept the complete ObjectName (instead of only type as currently).

        Attachments

          Activity

            People

            • Assignee:
              gnt Guillaume Nodet
              Reporter:
              jbonofre Jean-Baptiste Onofré
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: