activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jstrac...@apache.org
Subject svn commit: r384186 - /incubator/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/network/NetworkTestSupport.java
Date Wed, 08 Mar 2006 11:44:30 GMT
Author: jstrachan
Date: Wed Mar  8 03:44:28 2006
New Revision: 384186

URL: http://svn.apache.org/viewcvs?rev=384186&view=rev
Log:
patch test case to explicitly disable JMX

Modified:
    incubator/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/network/NetworkTestSupport.java

Modified: incubator/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/network/NetworkTestSupport.java
URL: http://svn.apache.org/viewcvs/incubator/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/network/NetworkTestSupport.java?rev=384186&r1=384185&r2=384186&view=diff
==============================================================================
--- incubator/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/network/NetworkTestSupport.java
(original)
+++ incubator/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/network/NetworkTestSupport.java
Wed Mar  8 03:44:28 2006
@@ -22,6 +22,7 @@
 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 @@
         }
         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;
     }



Mime
View raw message