Any idea how to get the actual redelivery count of a message after it reaches the Dead Letter Queue. Appears, Artemis see this as a new delivery, and resets the counter to 1.
See illustration below: 1. Message is consumed by the MDB. 2. Something bad happens and I call setRollbackOnly on the context until max retry attempts of 3 is reached. 3. Artemis sends message to configured DLQ. 4. DLQ Mdb consumes message, but JMSXDeliveryCount on message reads 1 instead of 3.
Any idea, how to retrieve the retry count 3 from DLQ?