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:
Robert Davies 2007-01-24 16:56:43 +00:00
parent 30716b1519
commit af249b6b86
1 changed files with 3 additions and 1 deletions

View File

@ -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;