Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-5424

MBeanServer reference in MetricServiceImpl should be made optional

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • Commons Metrics 1.0.0
    • Commons Metrics 1.2.0
    • Commons
    • None

    Description

      Currently MetricServiceImpl has a required dependency on MBeanServer. Technically this can be made optional and default Platform MBeanServer can be used. Further due to missing start on JMXReporter the MBean are not getting registered also

      Sling Launchpad registers an MBeanServer by default which might not be the case in other OSGi setups. So making this optional would simplify using this bundle in other setup also

      Also look into testcase logic per discussion in http://markmail.org/thread/mow4u6vn7mfnj7gy

      Attachments

        Issue Links

          Activity

            People

              chetanm Chetan Mehrotra
              chetanm Chetan Mehrotra
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: