activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chir...@apache.org
Subject svn commit: r786193 - /activemq/sandbox/activemq-flow/activemq-broker/src/main/java/org/apache/activemq/apollo/broker/VirtualHost.java
Date Thu, 18 Jun 2009 18:19:20 GMT
Author: chirino
Date: Thu Jun 18 18:19:20 2009
New Revision: 786193

URL: http://svn.apache.org/viewvc?rev=786193&view=rev
Log:
Fixing the testAddConsumerThenSend test case.

Modified:
    activemq/sandbox/activemq-flow/activemq-broker/src/main/java/org/apache/activemq/apollo/broker/VirtualHost.java

Modified: activemq/sandbox/activemq-flow/activemq-broker/src/main/java/org/apache/activemq/apollo/broker/VirtualHost.java
URL: http://svn.apache.org/viewvc/activemq/sandbox/activemq-flow/activemq-broker/src/main/java/org/apache/activemq/apollo/broker/VirtualHost.java?rev=786193&r1=786192&r2=786193&view=diff
==============================================================================
--- activemq/sandbox/activemq-flow/activemq-broker/src/main/java/org/apache/activemq/apollo/broker/VirtualHost.java
(original)
+++ activemq/sandbox/activemq-flow/activemq-broker/src/main/java/org/apache/activemq/apollo/broker/VirtualHost.java
Thu Jun 18 18:19:20 2009
@@ -156,7 +156,7 @@
             IQueue<Long, MessageDelivery> iQueue = queueStore.createSharedQueue(dest.getName().toString());
             queue = new Queue(iQueue);
             queue.setDestination(dest);
-            Domain domain = router.getDomain(Router.QUEUE_DOMAIN);
+            Domain domain = router.getDomain(dest.getDomain());
             domain.add(dest.getName(), queue);
             queues.put(dest.getName(), queue);
         }
@@ -188,7 +188,7 @@
             }
             else
             {
-                if (destination.getDomain().equals(Router.TOPIC_DOMAIN)) {
+                if (destination.getDomain().equals(Router.TOPIC_DOMAIN) || destination.getDomain().equals(Router.TEMP_TOPIC_DOMAIN)
) {
                     sub = new TopicSubscription(this, destination, consumer.getSelectorExpression());
                 } else {
                     Queue queue = queues.get(destination.getName());



Mime
View raw message