I am trying to achieve message routing based on certain logic performed on a message header (for eg. JMSCorrelationID)
For this, I implemented a transformer class that extracts the value of the header and sets the address on message.
(The necessary destination server with required queues is set up)
On a normal scenario, it works well.
But, in cases where the forwarding address is not one of the previously setup queues, the nthe messages are lost.
Is there a way we can ensure the messages are not lost but either retained in the same queue for n number of retries and then probably moved to a DLQ?
Or can any one recommend an approach to do similar message routing basd on certain pluggable logic?
Retrieving data ...