for (int i = 0; i < brokers.length; i++) {
JMSBroker broker = brokers[i];
AbstractName brokerAbstractName = PortletManager.getNameFor(renderRequest, broker);
NetworkConnector[] connectors = manager.getConnectorsForContainer(broker);
for (int j = 0; j < connectors.length; j++) {
ActiveMQConnector connector = (ActiveMQConnector) connectors[j];
String brokerName = brokerAbstractName.getName().get("name").toString();
ConnectorWrapper info = new ConnectorWrapper(brokerName, brokerAbstractName.toString(),
connector.getPath(),
connector);
beans.add(info);
}
}
renderRequest.setAttribute("brokers", getBrokerList(renderRequest, manager));