ARTEMIS-740 Auto-reload diverts from broker.xml

This commit is contained in:
Ville Skyttä 2016-09-21 12:13:31 +03:00 committed by Clebert Suconic
parent df0d5d71e7
commit 589adbccac
1 changed files with 6 additions and 0 deletions

View File

@ -2451,6 +2451,12 @@ public class ActiveMQServerImpl implements ActiveMQServer {
securityRepository.swap(config.getSecurityRoles().entrySet());
ActiveMQServerLogger.LOGGER.reloadingConfiguration("address settings");
addressSettingsRepository.swap(config.getAddressesSettings().entrySet());
ActiveMQServerLogger.LOGGER.reloadingConfiguration("diverts");
for (DivertConfiguration divertConfig : config.getDivertConfigurations()) {
if (postOffice.getBinding(new SimpleString(divertConfig.getName())) == null) {
deployDivert(divertConfig);
}
}
}
}
}