I am using ActiveMQ 5.15.14 with a customized redelivery policy on the broker to deliver bad messages to the DLQ after one redelivery attempt to my clients.
When using a Spring Boot based client this works correctly when an exception is thrown from within the Java code. However if the Java client is crashes or is abruptly terminated, the redelivery count is increased in the broker but the message is never sent to the DLQ regardless of the number of redelivery attempts that are made.
Is there a way to have the broker move messages to the DLQ based on a client disconnecting instead of reporting an actual exception?