feature in http://svn.apache.org/viewvc?rev=1177619&view=rev
Requires two options to enable. A connection factory needs the transactedIndividualAck=true attribute. This tells a consumer to send acks as messages are delivered. They accumulate on the broker till the transaction completes. The default behavior is to provide a single batch ack before the transaction completes, which does not allow the broker to distinguish between delivery and transaction completion.
On the KahaDBPersistenceAdapter, rewriteOnRedelivery=true is required. This ensures that the delivery count is persisted on a transaction rollback. If the message is again read from the journal (after a restart), it will have the correct redelivery status. This makes the JMSRedelivredFlag bullet proof.