activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gtu...@apache.org
Subject svn commit: r939327 - /activemq/trunk/activemq-core/src/test/java/org/apache/activemq/usecases/ThreeBrokerVirtualTopicNetworkTest.java
Date Thu, 29 Apr 2010 14:35:14 GMT
Author: gtully
Date: Thu Apr 29 14:35:13 2010
New Revision: 939327

URL: http://svn.apache.org/viewvc?rev=939327&view=rev
Log:
add additional brokers to form a ring of 3

Modified:
    activemq/trunk/activemq-core/src/test/java/org/apache/activemq/usecases/ThreeBrokerVirtualTopicNetworkTest.java

Modified: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/usecases/ThreeBrokerVirtualTopicNetworkTest.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/usecases/ThreeBrokerVirtualTopicNetworkTest.java?rev=939327&r1=939326&r2=939327&view=diff
==============================================================================
--- activemq/trunk/activemq-core/src/test/java/org/apache/activemq/usecases/ThreeBrokerVirtualTopicNetworkTest.java
(original)
+++ activemq/trunk/activemq-core/src/test/java/org/apache/activemq/usecases/ThreeBrokerVirtualTopicNetworkTest.java
Thu Apr 29 14:35:13 2010
@@ -23,13 +23,11 @@ import javax.jms.Destination;
 import javax.jms.MessageConsumer;
 
 import org.apache.activemq.JmsMultipleBrokersTestSupport;
-import org.apache.activemq.JmsMultipleBrokersTestSupport.BrokerItem;
 import org.apache.activemq.broker.BrokerService;
 import org.apache.activemq.broker.region.DestinationInterceptor;
 import org.apache.activemq.broker.region.virtual.VirtualDestination;
 import org.apache.activemq.broker.region.virtual.VirtualDestinationInterceptor;
 import org.apache.activemq.broker.region.virtual.VirtualTopic;
-import org.apache.activemq.network.NetworkConnector;
 import org.apache.activemq.store.kahadb.KahaDBStore;
 import org.apache.activemq.util.MessageIdList;
 import org.apache.commons.logging.Log;
@@ -47,6 +45,11 @@ public class ThreeBrokerVirtualTopicNetw
         boolean conduitSubs = true;
         // Setup broker networks
         bridgeAndConfigureBrokers("BrokerA", "BrokerB", dynamicOnly, networkTTL, conduitSubs);
+        bridgeAndConfigureBrokers("BrokerA", "BrokerC", dynamicOnly, networkTTL, conduitSubs);
+        bridgeAndConfigureBrokers("BrokerB", "BrokerA", dynamicOnly, networkTTL, conduitSubs);
+        bridgeAndConfigureBrokers("BrokerB", "BrokerC", dynamicOnly, networkTTL, conduitSubs);
+        bridgeAndConfigureBrokers("BrokerC", "BrokerA", dynamicOnly, networkTTL, conduitSubs);
+        bridgeAndConfigureBrokers("BrokerC", "BrokerB", dynamicOnly, networkTTL, conduitSubs);
 
         startAllBrokers();      
         waitForBridgeFormation();
@@ -57,7 +60,7 @@ public class ThreeBrokerVirtualTopicNetw
         // Setup consumers
         MessageConsumer clientA = createConsumer("BrokerA", createDestination("Consumer.A.TEST.FOO",
false));
         MessageConsumer clientB = createConsumer("BrokerB", createDestination("Consumer.B.TEST.FOO",
false));
-        MessageConsumer clientC = createConsumer("BrokerB", createDestination("Consumer.C.TEST.FOO",
false));
+        MessageConsumer clientC = createConsumer("BrokerC", createDestination("Consumer.C.TEST.FOO",
false));
         
         Thread.sleep(2000);
 
@@ -87,8 +90,9 @@ public class ThreeBrokerVirtualTopicNetw
             brokerItem.destroy();
         }
         
-        BrokerService restartedBroker = createAndConfigureBroker(new URI("broker:(tcp://localhost:61616)/BrokerA"));
+        BrokerService restartedBroker = createAndConfigureBroker(new URI("broker:(tcp://localhost:61616)/BrokerA?useJmx=false"));
         bridgeAndConfigureBrokers("BrokerA", "BrokerB", dynamicOnly, networkTTL, conduitSubs);
+        bridgeAndConfigureBrokers("BrokerA", "BrokerC", dynamicOnly, networkTTL, conduitSubs);
         restartedBroker.start();
         waitForBridgeFormation();
         
@@ -123,6 +127,7 @@ public class ThreeBrokerVirtualTopicNetw
         String options = new String("?useJmx=false&deleteAllMessagesOnStartup=true");

         createAndConfigureBroker(new URI("broker:(tcp://localhost:61616)/BrokerA" + options));
         createAndConfigureBroker(new URI("broker:(tcp://localhost:61617)/BrokerB" + options));
+        createAndConfigureBroker(new URI("broker:(tcp://localhost:61618)/BrokerC" + options));
     }
     
     private BrokerService createAndConfigureBroker(URI uri) throws Exception {



Mime
View raw message