My application uses spring JMS Transaction manager and MQ connection factory to achieve transaction rollback and rely on MQ specific backout queue and backout count for replay mechanism.

Now, there is a new requirement to do some action once the replay is finished unsuccessfully and the original message is pushed to backout queue.

Is it possible to get MQ backout count in a spring jms message header ? If I had backout count then I could use jms delivery count to make decision.

any thoughts how to do stuff like this ?

-arun