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

MBeanServer reference in MetricServiceImpl should be made optional

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: Commons Metrics 1.0.0
    • Fix Version/s: Commons Metrics 1.2.0
    • Component/s: Commons
    • Labels:
      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: