https://issues.apache.org/jira/browse/AMQ-3918 - revert accidental change - start connector only after we create a mbean for it

git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1363700 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Bosanac Dejan 2012-07-20 09:58:49 +00:00
parent 6bec2aabb5
commit d301b41638
1 changed files with 2 additions and 2 deletions

View File

@ -2386,11 +2386,11 @@ public class BrokerService implements Service {
if (policy != null) {
connector.setMessageAuthorizationPolicy(policy);
}
connector.getStatistics().setEnabled(enableStatistics);
connector.start();
if (isUseJmx()) {
connector = registerConnectorMBean(connector);
}
connector.getStatistics().setEnabled(enableStatistics);
connector.start();
return connector;
}