mirror of https://github.com/apache/activemq.git
Make sure that we don't allow advisory destinations to be marked as sync dispatch. git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1440018 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
0b09fde97c
commit
99c2b2e2d2
|
@ -1332,7 +1332,11 @@ public abstract class DemandForwardingBridgeSupport implements NetworkBridge, Br
|
|||
}
|
||||
|
||||
protected void configureDemandSubscription(ConsumerInfo info, DemandSubscription sub) throws IOException {
|
||||
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);
|
||||
|
|
Loading…
Reference in New Issue