mirror of https://github.com/apache/activemq.git
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:
parent
9ca56a0049
commit
5159e2b9ad
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue