I do not understand how to handle errornous messages when using a JMS topic. I have a persistent JMS Topic with 4 subscribers. I send a message to the topic. 3 of the subscribers consume the message successfully, one fails. After some retries the message is put in the dead letter queue (DLQ).
The question is, how to continue from there.
How can I find out which subscriber failed?
How can I redeliver the message only to that subscriber? I cannot just put it into the topic again, since all subscribers would get it then.
Are there some best practices to handle this case?
If that matters, I use Glassfish 3.1.2 with an openMQ. I would prefer to use a solution that is not specific to the implementation of the messaging provider.
Thanks in advance for your answer. Cheers Arne