ModuleFactoryBundleTracker moduleFactoryTracker = new ModuleFactoryBundleTracker(
blankTransactionServiceTracker);
- boolean scanResolvedBundlesForModuleInfo = false;
+ boolean scanResolvedBundlesForModuleInfo = true;
BundleTracker<Collection<ObjectRegistration<YangModuleInfo>>> moduleInfoResolvedBundleTracker = null;
ExtensibleBundleTracker<?> moduleFactoryBundleTracker;
if(scanResolvedBundlesForModuleInfo) {
try {
configRegistryJMXRegistrator.registerToJMXNoNotifications(configRegistry);
} catch (InstanceAlreadyExistsException e) {
+ configRegistryJMXRegistrator.close();
throw new IllegalStateException("Config Registry was already registered to JMX", e);
}
try {
configRegistryJMXRegistrator.registerToJMX(notifyingConfigRegistry);
} catch (InstanceAlreadyExistsException e) {
+ configRegistryJMXRegistrator.close();
+ configRegistryJMXRegistratorWithNotifications.close();
throw new IllegalStateException("Config Registry was already registered to JMX", e);
}