// Start queue consumers for all components
for (Iterator it = broker.getContainer().getRegistry().getComponents().iterator(); it.hasNext();) {
ComponentMBeanImpl cmp = (ComponentMBeanImpl) it.next();
if (cmp.isStarted()) {
onComponentStarted(new ComponentEvent(cmp, ComponentEvent.COMPONENT_STARTED));
}
}
// Start queue consumers for all endpoints
ServiceEndpoint[] endpoints = broker.getContainer().getRegistry().getEndpointsForInterface(null);
for (int i = 0; i < endpoints.length; i++) {