activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gtu...@apache.org
Subject svn commit: r1144339 - /activemq/trunk/activemq-core/src/test/java/org/apache/activemq/broker/Main.java
Date Fri, 08 Jul 2011 14:35:28 GMT
Author: gtully
Date: Fri Jul  8 14:35:28 2011
New Revision: 1144339

URL: http://svn.apache.org/viewvc?rev=1144339&view=rev
Log:
allow main to easily pull xml config from a directory

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

Modified: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/broker/Main.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/broker/Main.java?rev=1144339&r1=1144338&r2=1144339&view=diff
==============================================================================
--- activemq/trunk/activemq-core/src/test/java/org/apache/activemq/broker/Main.java (original)
+++ activemq/trunk/activemq-core/src/test/java/org/apache/activemq/broker/Main.java Fri Jul
 8 14:35:28 2011
@@ -42,12 +42,13 @@ public final class Main {
      */
     public static void main(String[] args) {
         try {
-            // TODO - this seems to break interceptors for some reason
-            // BrokerService broker = BrokerFactory.createBroker(new
-            // URI(brokerURI));
             BrokerService broker = new BrokerService();
             broker.setPersistent(false);
 
+            // String brokerDir = "xbean:...;
+            // System.setProperty("activemq.base", brokerDir);
+            // BrokerService broker = BrokerFactory.createBroker(new URI(brokerDir + "/activemq.xml"));
+
             // for running on Java 5 without mx4j
             ManagementContext managementContext = broker.getManagementContext();
             managementContext.setFindTigerMbeanServer(true);



Mime
View raw message