Copy the configured broker info too so that the brokerName is set on the created discovery agent.

This fixes the WARN message that was being produced on startup.

git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@464216 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Hiram R. Chirino 2006-10-15 15:52:11 +00:00
parent 9ca56a0049
commit 5159e2b9ad
1 changed files with 2 additions and 0 deletions

View File

@ -105,6 +105,7 @@ public class TransportConnector implements Connector {
rc.setDiscoveryUri(discoveryUri);
rc.setName(name);
rc.setDisableAsyncDispatch(disableAsyncDispatch);
rc.setBrokerInfo(brokerInfo);
return rc;
}
@ -212,6 +213,7 @@ public class TransportConnector implements Connector {
getServer().start();
DiscoveryAgent da = getDiscoveryAgent();
if( da!=null ) {
da.setBrokerName(getBrokerInfo().getBrokerName());
da.registerService(getConnectUri().toString());
da.start();
}