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:
Timothy A. Bish 2013-01-29 17:36:26 +00:00
parent 0b09fde97c
commit 99c2b2e2d2
1 changed files with 5 additions and 1 deletions

View File

@ -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);