Quantcast

activemq git commit: https://issues.apache.org/jira/browse/AMQ-6629

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

activemq git commit: https://issues.apache.org/jira/browse/AMQ-6629

tabish
Repository: activemq
Updated Branches:
  refs/heads/activemq-5.14.x dea1accb9 -> c4f8361d5


https://issues.apache.org/jira/browse/AMQ-6629

Allow for broker stats to be viewed in tests by enabling JMX but
disabling the creation of a management connector.


Project: http://git-wip-us.apache.org/repos/asf/activemq/repo
Commit: http://git-wip-us.apache.org/repos/asf/activemq/commit/c4f8361d
Tree: http://git-wip-us.apache.org/repos/asf/activemq/tree/c4f8361d
Diff: http://git-wip-us.apache.org/repos/asf/activemq/diff/c4f8361d

Branch: refs/heads/activemq-5.14.x
Commit: c4f8361d52d1ee1924c0b6959536399b6d0c0a29
Parents: dea1acc
Author: Timothy Bish <[hidden email]>
Authored: Wed Mar 15 10:09:05 2017 -0400
Committer: Timothy Bish <[hidden email]>
Committed: Wed Mar 15 10:09:05 2017 -0400

----------------------------------------------------------------------
 .../java/org/apache/activemq/junit/EmbeddedActiveMQBroker.java  | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/activemq/blob/c4f8361d/activemq-tooling/activemq-junit/src/main/java/org/apache/activemq/junit/EmbeddedActiveMQBroker.java
----------------------------------------------------------------------
diff --git a/activemq-tooling/activemq-junit/src/main/java/org/apache/activemq/junit/EmbeddedActiveMQBroker.java b/activemq-tooling/activemq-junit/src/main/java/org/apache/activemq/junit/EmbeddedActiveMQBroker.java
index 3e328e8..fc0dc19 100644
--- a/activemq-tooling/activemq-junit/src/main/java/org/apache/activemq/junit/EmbeddedActiveMQBroker.java
+++ b/activemq-tooling/activemq-junit/src/main/java/org/apache/activemq/junit/EmbeddedActiveMQBroker.java
@@ -46,13 +46,14 @@ public class EmbeddedActiveMQBroker extends ExternalResource {
      *
      * The defaults are:
      *  - the broker name is 'embedded-broker'
-     *  - JMX is disabled
+     *  - JMX is enabled but no management connector will be created.
      *  - Persistence is disabled
      *
      */
     public EmbeddedActiveMQBroker() {
         brokerService = new BrokerService();
-        brokerService.setUseJmx(false);
+        brokerService.setUseJmx(true);
+        brokerService.getManagementContext().setCreateConnector(false);
         brokerService.setUseShutdownHook(false);
         brokerService.setPersistent(false);
         brokerService.setBrokerName("embedded-broker");

Loading...