Uploaded image for project: 'Aries'
  1. Aries
  2. ARIES-260

Reconsider synchronous MBean registration/unregistration

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Abandoned
    • None
    • None
    • JMX
    • None

    Description

      Currently if you do

      Bundle bundle = context.installBundle("org.apache.aries.jmx.jar");
      bundle.start()

      BundleStateMBean mbean = MBeanProxy.get(server, objectName, BundleStateMBean.class);
      mbean.listBundles();

      This might fail because the MBeans may not be registered when bundle.start() returns.
      To compensate this effect a client will have to do some server.isRegistered/timeout logic or perhaps some more complicated notification logic.

      IMHO, MBean registration should not be treated differently to osgi service registration i.e. it should be complete when Bundle.start() returns.

      Attachments

        Issue Links

          Activity

            People

              adamwojtuniak Adam Wojtuniak
              tdiesler Thomas Diesler
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: