mirror of https://github.com/apache/activemq.git
use different broker names for the remote and local broker
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@499478 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
30716b1519
commit
af249b6b86
|
@ -102,11 +102,13 @@ public class NetworkTestSupport extends BrokerTestSupport {
|
|||
}
|
||||
|
||||
protected BrokerService createBroker() throws Exception {
|
||||
return BrokerFactory.createBroker(new URI("broker:()/localhost?persistent=false&useJmx=false"));
|
||||
BrokerService broker = BrokerFactory.createBroker(new URI("broker:()/localhost?persistent=false&useJmx=false&"));
|
||||
return broker;
|
||||
}
|
||||
|
||||
protected BrokerService createRemoteBroker(PersistenceAdapter persistenceAdapter) throws Exception {
|
||||
BrokerService answer = new BrokerService();
|
||||
broker.setBrokerName("remote");
|
||||
answer.setUseJmx(false);
|
||||
answer.setPersistenceAdapter(persistenceAdapter);
|
||||
return answer;
|
||||
|
|
Loading…
Reference in New Issue