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
This commit is contained in:
James Strachan 2006-03-08 11:44:28 +00:00
parent d47ce01a85
commit 8d36b4c751
1 changed files with 7 additions and 1 deletions

View File

@ -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;
@ -99,8 +100,13 @@ 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;
}