diff --git a/activemq-broker/src/main/java/org/apache/activemq/network/DemandForwardingBridgeSupport.java b/activemq-broker/src/main/java/org/apache/activemq/network/DemandForwardingBridgeSupport.java index 5ab610bce8..2ed025235a 100644 --- a/activemq-broker/src/main/java/org/apache/activemq/network/DemandForwardingBridgeSupport.java +++ b/activemq-broker/src/main/java/org/apache/activemq/network/DemandForwardingBridgeSupport.java @@ -1332,7 +1332,11 @@ public abstract class DemandForwardingBridgeSupport implements NetworkBridge, Br } protected void configureDemandSubscription(ConsumerInfo info, DemandSubscription sub) throws IOException { - sub.getLocalInfo().setDispatchAsync(configuration.isDispatchAsync()); + if (AdvisorySupport.isConsumerAdvisoryTopic(info.getDestination())){ + sub.getLocalInfo().setDispatchAsync(true); + } else { + sub.getLocalInfo().setDispatchAsync(configuration.isDispatchAsync()); + } sub.getLocalInfo().setPrefetchSize(configuration.getPrefetchSize()); subscriptionMapByLocalId.put(sub.getLocalInfo().getConsumerId(), sub); subscriptionMapByRemoteId.put(sub.getRemoteInfo().getConsumerId(), sub);