mirror of https://github.com/apache/activemq.git
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:
parent
d47ce01a85
commit
8d36b4c751
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue