activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a..@apache.org
Subject svn commit: r365876 - /incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/Main.java
Date Wed, 04 Jan 2006 09:58:43 GMT
Author: aco
Date: Wed Jan  4 01:58:35 2006
New Revision: 365876

URL: http://svn.apache.org/viewcvs?rev=365876&view=rev
Log:
Added adding of started broker to lists of brokers.

Modified:
    incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/Main.java

Modified: incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/Main.java
URL: http://svn.apache.org/viewcvs/incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/Main.java?rev=365876&r1=365875&r2=365876&view=diff
==============================================================================
--- incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/Main.java
(original)
+++ incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/Main.java
Wed Jan  4 01:58:35 2006
@@ -641,6 +641,7 @@
             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 String getVersion() throws Throwable {
-        // TODO: Why is version returned invalid?
         ClassLoader cl = getClassLoader();
         // Use reflection to get the version
         try {



Mime
View raw message