activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chir...@apache.org
Subject svn commit: r1446300 - /activemq/trunk/activemq-broker/src/main/java/org/apache/activemq/broker/region/virtual/CompositeDestinationFilter.java
Date Thu, 14 Feb 2013 18:57:28 GMT
Author: chirino
Date: Thu Feb 14 18:57:28 2013
New Revision: 1446300

URL: http://svn.apache.org/r1446300
Log:
Fixes AMQ-4320: Destinations are not auto created when using Composite Destination configured
on the broker

Modified:
    activemq/trunk/activemq-broker/src/main/java/org/apache/activemq/broker/region/virtual/CompositeDestinationFilter.java

Modified: activemq/trunk/activemq-broker/src/main/java/org/apache/activemq/broker/region/virtual/CompositeDestinationFilter.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-broker/src/main/java/org/apache/activemq/broker/region/virtual/CompositeDestinationFilter.java?rev=1446300&r1=1446299&r2=1446300&view=diff
==============================================================================
--- activemq/trunk/activemq-broker/src/main/java/org/apache/activemq/broker/region/virtual/CompositeDestinationFilter.java
(original)
+++ activemq/trunk/activemq-broker/src/main/java/org/apache/activemq/broker/region/virtual/CompositeDestinationFilter.java
Thu Feb 14 18:57:28 2013
@@ -19,6 +19,7 @@ package org.apache.activemq.broker.regio
 import java.util.Collection;
 import java.util.Iterator;
 
+import org.apache.activemq.broker.Broker;
 import org.apache.activemq.broker.ProducerBrokerExchange;
 import org.apache.activemq.broker.region.Destination;
 import org.apache.activemq.broker.region.DestinationFilter;
@@ -79,7 +80,10 @@ public class CompositeDestinationFilter 
                 forwarded_message = message;
             }
 
-            send(context, forwarded_message, destination);
+            // Send it back through the region broker for routing.
+            context.setMutable(true);
+            Broker regionBroker = context.getConnectionContext().getBroker().getBrokerService().getRegionBroker();
+            regionBroker.send(context, forwarded_message);
         }
         if (!forwardOnly) {
             super.send(context, message);



Mime
View raw message