Added adding of started broker to lists of brokers.

git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@365876 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Adrian T. Co 2006-01-04 09:58:35 +00:00
parent b70c8d1cb2
commit 6cbd6d2e8d
1 changed files with 1 additions and 1 deletions

View File

@ -641,6 +641,7 @@ public class Main {
Class brokerFactory = cl.loadClass(BROKER_FACTORY_CLASS);
Method createBroker = brokerFactory.getMethod("createBroker", new Class[] { URI.class });
broker = createBroker.invoke(null, new Object[] { configURI });
brokers.add(broker);
Method start = broker.getClass().getMethod("start", new Class[]{});
start.invoke(broker, new Object[]{});
@ -851,7 +852,6 @@ public class Main {
}
public String getVersion() throws Throwable {
// TODO: Why is version returned invalid?
ClassLoader cl = getClassLoader();
// Use reflection to get the version
try {