activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gtu...@apache.org
Subject svn commit: r1381095 - /activemq/trunk/activemq-core/src/main/java/org/apache/activemq/network/DemandForwardingBridgeSupport.java
Date Wed, 05 Sep 2012 09:22:44 GMT
Author: gtully
Date: Wed Sep  5 09:22:43 2012
New Revision: 1381095

URL: http://svn.apache.org/viewvc?rev=1381095&view=rev
Log:
https://issues.apache.org/jira/browse/AMQ-4017 - always use async dispatch for the advisory
consumer so that we will not block remote dispatch

Modified:
    activemq/trunk/activemq-core/src/main/java/org/apache/activemq/network/DemandForwardingBridgeSupport.java

Modified: activemq/trunk/activemq-core/src/main/java/org/apache/activemq/network/DemandForwardingBridgeSupport.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/network/DemandForwardingBridgeSupport.java?rev=1381095&r1=1381094&r2=1381095&view=diff
==============================================================================
--- activemq/trunk/activemq-core/src/main/java/org/apache/activemq/network/DemandForwardingBridgeSupport.java
(original)
+++ activemq/trunk/activemq-core/src/main/java/org/apache/activemq/network/DemandForwardingBridgeSupport.java
Wed Sep  5 09:22:43 2012
@@ -322,7 +322,8 @@ public abstract class DemandForwardingBr
                 // determine demand.
                 if (!configuration.isStaticBridge()) {
                     demandConsumerInfo = new ConsumerInfo(remoteSessionInfo, 1);
-                    demandConsumerInfo.setDispatchAsync(configuration.isDispatchAsync());
+                    // always dispatch advisories async so that we never block the producer
broker if we are slow
+                    demandConsumerInfo.setDispatchAsync(true);
                     String advisoryTopic = configuration.getDestinationFilter();
                     if (configuration.isBridgeTempDestinations()) {
                         advisoryTopic += "," + AdvisorySupport.TEMP_DESTINATION_COMPOSITE_ADVISORY_TOPIC;



Mime
View raw message