From 8d36b4c751cc5a6c77bf5a4dc5e8bc2111e73f80 Mon Sep 17 00:00:00 2001 From: James Strachan Date: Wed, 8 Mar 2006 11:44:28 +0000 Subject: [PATCH] patch test case to explicitly disable JMX git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@384186 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/activemq/network/NetworkTestSupport.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/activemq-core/src/test/java/org/apache/activemq/network/NetworkTestSupport.java b/activemq-core/src/test/java/org/apache/activemq/network/NetworkTestSupport.java index 694a899ff4..49c9a6a8f2 100755 --- a/activemq-core/src/test/java/org/apache/activemq/network/NetworkTestSupport.java +++ b/activemq-core/src/test/java/org/apache/activemq/network/NetworkTestSupport.java @@ -22,6 +22,7 @@ import java.net.URISyntaxException; import java.util.ArrayList; import java.util.Iterator; +import org.apache.activemq.broker.BrokerFactory; import org.apache.activemq.broker.BrokerRegistry; import org.apache.activemq.broker.BrokerService; import org.apache.activemq.broker.BrokerTestSupport; @@ -98,9 +99,14 @@ public class NetworkTestSupport extends BrokerTestSupport { } return remotePersistenceAdapter; } - + + protected BrokerService createBroker() throws Exception { + return BrokerFactory.createBroker(new URI("broker:()/localhost?persistent=false&useJmx=false")); + } + protected BrokerService createRemoteBroker(PersistenceAdapter persistenceAdapter) throws Exception { BrokerService answer = new BrokerService(); + answer.setUseJmx(false); answer.setPersistenceAdapter(persistenceAdapter); return answer; }