mirror of https://github.com/apache/activemq.git
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:
parent
b70c8d1cb2
commit
6cbd6d2e8d
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue