activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gnoremac <>
Subject Redelivery Policy and In Flight Message Count
Date Thu, 03 Sep 2009 18:50:07 GMT


I have configured a single queue which is consumed from by a single
transacted consumer.

The connection factory is configured with a redelivery policy as follows.
(Redeliver 10 times)

<amq:connectionFactory id="jmsFactory" brokerURL="vm://localhost"
useAsyncSend="false" objectMessageSerializationDefered="true">
      <amq:redeliveryPolicy backOffMultiplier="2"
initialRedeliveryDelay="10000" maximumRedeliveries="10"

after redelivering 10 times the message is moved to the dead letter queue
properly but I notice the In Flight message count on the original queue
increments to 2 even though both the enqueue and dequeue counts are correct
at a value of 1.

I can confirm rollback is properly called on the session after each
redelivery. One thing to note is that I am not closing the consumers session
between deliveries.

I am curious if anyone else has noticed this happening.

View this message in context:
Sent from the ActiveMQ - User mailing list archive at

View raw message