| ... Configuring Async Dispatch at the ConnectionFactory Level
Code Block |
|
|
((ActiveMQConnectionFactory)connectionFactory).setDispatchAsync(false);
|
...
((ActiveMQConnection)connection).setDispatchAsync(false);
... Configuring the dispatchAsync using Destination Options overrides the settings at the connection and connection factory level.
Code Block |
|
|
queue = new ActiveMQQueue("TEST.QUEUE?consumer.dispatchAsync=false");
consumer = session.createConsumer(queue);
|
Disabling Async Dispatch on Broker's Transport Connector It is possible to disable async dispatch on a specific transport connector via the disableAsyncDispatch property. Once disabled for this transport, it cannot be enabled by individual clients.
Code Block |
|
|
<transportConnector name="openwire" uri="tcp://0.0.0.0:61616" disableAsyncDispatch="true" />
|
|