You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by cl...@apache.org on 2017/02/07 22:09:18 UTC
[1/2] activemq-artemis git commit: ARTEMIS-947 reload on
broker.xml change
Repository: activemq-artemis
Updated Branches:
refs/heads/master a39b9e55e -> ba784281d
ARTEMIS-947 reload <addresses> on broker.xml change
Project: http://git-wip-us.apache.org/repos/asf/activemq-artemis/repo
Commit: http://git-wip-us.apache.org/repos/asf/activemq-artemis/commit/f5599c66
Tree: http://git-wip-us.apache.org/repos/asf/activemq-artemis/tree/f5599c66
Diff: http://git-wip-us.apache.org/repos/asf/activemq-artemis/diff/f5599c66
Branch: refs/heads/master
Commit: f5599c6630d01e7872e227a1ceef32dacb9f7c3c
Parents: a39b9e5
Author: Justin Bertram <jb...@apache.org>
Authored: Tue Feb 7 13:45:24 2017 -0600
Committer: Justin Bertram <jb...@apache.org>
Committed: Tue Feb 7 13:45:24 2017 -0600
----------------------------------------------------------------------
.../activemq/artemis/core/server/impl/ActiveMQServerImpl.java | 6 ++++++
docs/user-manual/en/config-reload.md | 6 +++---
2 files changed, 9 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f5599c66/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/ActiveMQServerImpl.java
----------------------------------------------------------------------
diff --git a/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/ActiveMQServerImpl.java b/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/ActiveMQServerImpl.java
index 7575100..a2ef3e6 100644
--- a/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/ActiveMQServerImpl.java
+++ b/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/ActiveMQServerImpl.java
@@ -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);
}
}
}
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f5599c66/docs/user-manual/en/config-reload.md
----------------------------------------------------------------------
diff --git a/docs/user-manual/en/config-reload.md b/docs/user-manual/en/config-reload.md
index 50d9c25..1fba9d6 100644
--- a/docs/user-manual/en/config-reload.md
+++ b/docs/user-manual/en/config-reload.md
@@ -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.
\ No newline at end of file
+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.
\ No newline at end of file
[2/2] activemq-artemis git commit: This closes #997
Posted by cl...@apache.org.
This closes #997
Project: http://git-wip-us.apache.org/repos/asf/activemq-artemis/repo
Commit: http://git-wip-us.apache.org/repos/asf/activemq-artemis/commit/ba784281
Tree: http://git-wip-us.apache.org/repos/asf/activemq-artemis/tree/ba784281
Diff: http://git-wip-us.apache.org/repos/asf/activemq-artemis/diff/ba784281
Branch: refs/heads/master
Commit: ba784281d05f2820b22be85b872061d69f2012fb
Parents: a39b9e5 f5599c6
Author: Clebert Suconic <cl...@apache.org>
Authored: Tue Feb 7 17:03:48 2017 -0500
Committer: Clebert Suconic <cl...@apache.org>
Committed: Tue Feb 7 17:03:48 2017 -0500
----------------------------------------------------------------------
.../activemq/artemis/core/server/impl/ActiveMQServerImpl.java | 6 ++++++
docs/user-manual/en/config-reload.md | 6 +++---
2 files changed, 9 insertions(+), 3 deletions(-)
----------------------------------------------------------------------