git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@378037 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Hiram R. Chirino 2006-02-15 17:09:18 +00:00
parent 11d0df6657
commit f8c268df6f
1 changed files with 2 additions and 2 deletions

View File

@ -158,6 +158,8 @@ public class BrokerService implements Service {
connector.setDiscoveryUri(discoveryUri); connector.setDiscoveryUri(discoveryUri);
} }
connector.setBroker(getBroker()); connector.setBroker(getBroker());
connector.setBrokerName(getBrokerName());
connector.setTaskRunnerFactory(getTaskRunnerFactory());
transportConnectors.add(connector); transportConnectors.add(connector);
if (isUseJmx()) { if (isUseJmx()) {
registerConnectorMBean(connector); registerConnectorMBean(connector);
@ -630,8 +632,6 @@ public class BrokerService implements Service {
public void setTransportConnectors(List transportConnectors) throws Exception { public void setTransportConnectors(List transportConnectors) throws Exception {
for (Iterator iter = transportConnectors.iterator(); iter.hasNext();) { for (Iterator iter = transportConnectors.iterator(); iter.hasNext();) {
TransportConnector connector = (TransportConnector) iter.next(); TransportConnector connector = (TransportConnector) iter.next();
connector.setBroker(getBroker());
connector.setBrokerName(getBrokerName());
addConnector(connector); addConnector(connector);
} }
} }