From 6cbd6d2e8d378304d3bb60dc3e7be2c8960ee3ea Mon Sep 17 00:00:00 2001 From: "Adrian T. Co" Date: Wed, 4 Jan 2006 09:58:35 +0000 Subject: [PATCH] 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 --- .../src/main/java/org/apache/activemq/broker/Main.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/activemq-core/src/main/java/org/apache/activemq/broker/Main.java b/activemq-core/src/main/java/org/apache/activemq/broker/Main.java index 2d90fd3e93..3f61704b2f 100755 --- a/activemq-core/src/main/java/org/apache/activemq/broker/Main.java +++ b/activemq-core/src/main/java/org/apache/activemq/broker/Main.java @@ -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 {