-
1. Re: Prevent receiving a message multiple times
gaohoward Dec 14, 2011 7:55 AM (in response to gilstr)Can I ask why you don't want the message being redelivered in case of failure?
-
2. Re: Prevent receiving a message multiple times
gilstr Dec 14, 2011 7:59 AM (in response to gaohoward)Hi
Suppose that a producer sends a consumer a money transfer order message. That message is propogated from HornetQ to the consumer which does receive it but the ack is not received to HornetQ, which will cause a the latter to re-send the money transfer order. In such a scenario (without message duplication prevention mechanism) the consumer will process the money transfer order twice instead of once.
I hope that I was able to make it clear enough.
Thanks,
Gil
-
3. Re: Prevent receiving a message multiple times
gaohoward Dec 14, 2011 8:10 AM (in response to gilstr)1 of 1 people found this helpfulI think what you need is transactional receive. You can wrap the message receiving and money transfer in one transaction. If the ack failed the transaction will be rolled back.
Howard
-
4. Re: Prevent receiving a message multiple times
gilstr Dec 14, 2011 8:53 AM (in response to gaohoward)I appreciate your help.
Gil