This commit is contained in:
Clebert Suconic 2018-02-09 09:05:53 -05:00
commit 8b46024181
1 changed files with 14 additions and 12 deletions

View File

@ -3103,6 +3103,7 @@ public class ActiveMQServerImpl implements ActiveMQServer {
@Override
public void reload(URL uri) throws Exception {
if (isActive()) {
Configuration config = new FileConfigurationParser().parseMainConfig(uri.openStream());
ActiveMQServerLogger.LOGGER.reloadingConfiguration("security");
securityRepository.swap(config.getSecurityRoles().entrySet());
@ -3119,5 +3120,6 @@ public class ActiveMQServerImpl implements ActiveMQServer {
undeployAddressesAndQueueNotInConfiguration(config);
}
}
}
}