mirror of
https://github.com/apache/activemq.git
synced 2025-02-17 07:24:51 +00:00
Also set the dispatchAsync when using connection consumers (use in MDB dispatching).
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@386335 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
85cc87a5a5
commit
baab4b209e
@ -656,6 +656,7 @@ public class ActiveMQConnection extends DefaultTransportListener implements Conn
|
||||
info.setSubcriptionName(subscriptionName);
|
||||
info.setSelector(messageSelector);
|
||||
info.setPrefetchSize(maxMessages);
|
||||
info.setDispatchAsync(asyncDispatch);
|
||||
|
||||
// Allows the options on the destination to configure the consumerInfo
|
||||
if( info.getDestination().getOptions()!=null ) {
|
||||
@ -963,12 +964,14 @@ public class ActiveMQConnection extends DefaultTransportListener implements Conn
|
||||
|
||||
checkClosedOrFailed();
|
||||
ensureConnectionInfoSent();
|
||||
|
||||
ConsumerId consumerId = createConsumerId();
|
||||
ConsumerInfo info = new ConsumerInfo(consumerId);
|
||||
info.setDestination(ActiveMQMessageTransformation.transformDestination(destination));
|
||||
info.setSelector(messageSelector);
|
||||
info.setPrefetchSize(maxMessages);
|
||||
info.setNoLocal(noLocal);
|
||||
info.setDispatchAsync(asyncDispatch);
|
||||
|
||||
// Allows the options on the destination to configure the consumerInfo
|
||||
if( info.getDestination().getOptions()!=null ) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user