ARTEMIS-947 reload <addresses> on broker.xml change
This commit is contained in:
parent
a39b9e55e7
commit
f5599c6630
|
@ -2226,6 +2226,10 @@ public class ActiveMQServerImpl implements ActiveMQServer {
|
|||
}
|
||||
|
||||
private void deployAddressesFromConfiguration() throws Exception {
|
||||
deployAddressesFromConfiguration(configuration);
|
||||
}
|
||||
|
||||
private void deployAddressesFromConfiguration(Configuration configuration) throws Exception {
|
||||
for (CoreAddressConfiguration config : configuration.getAddressConfigurations()) {
|
||||
AddressInfo info = new AddressInfo(SimpleString.toSimpleString(config.getName()), config.getRoutingTypes());
|
||||
addOrUpdateAddressInfo(info);
|
||||
|
@ -2719,6 +2723,8 @@ public class ActiveMQServerImpl implements ActiveMQServer {
|
|||
deployDivert(divertConfig);
|
||||
}
|
||||
}
|
||||
ActiveMQServerLogger.LOGGER.reloadingConfiguration("addresses");
|
||||
deployAddressesFromConfiguration(config);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -6,8 +6,8 @@ Once the configuration file is changed (broker.xml) the following modules will b
|
|||
|
||||
- Address Settings
|
||||
- Security Settings
|
||||
- JMS Queues
|
||||
- JMS Topics
|
||||
- Diverts
|
||||
- Addresses & queues
|
||||
|
||||
|
||||
Notice: Queues and Topics won't be removed upon reload, given the risk of losing messages. You may execute explicit CLI or Management operations to remove destinations.
|
||||
Notice: Address & queues won't be removed upon reload, given the risk of losing messages. You may execute explicit CLI or Management operations to remove destinations.
|
Loading…
Reference in New Issue