Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Abandoned
-
None
-
None
-
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
- is related to
-
ARIES-259 MBeans not getting unregistered reliably
- Resolved