Overview

ActiveMQ 4.0 now supports acknowledging a range of messages in a single batch operations. This option is enabled by default since it decreases load on the broker and therefore increases overall performance.

Disabling Optimized Acknowledgements using a Connection URI

cf = new ActiveMQConnectionFactory("tcp://locahost:61616?jms.optimizeAcknowledge=false");

Disabling Optimized Acknowledgements at the ConnectionFactory Level

((ActiveMQConnectionFactory)connectionFactory).setOptimizeAcknowledge(false);

Disabling Optimized Acknowledgements at the Connection Level

((ActiveMQConnection)connection).setOptimizeAcknowledge(false);
Graphic Design By Hiram