4 Replies Latest reply on Dec 14, 2011 8:53 AM by Gil Strauss

    Prevent receiving a message multiple times

    Gil Strauss Newbie

      Hello

       

       

      I'm having a producer client which is required to send an ack for each message it receives. Is it possible that the client will be receiving the same massage more than once. An example for such a scenario I can think of is:

       

       

      - HornetQ publishes a message and wait for ack

      - consumer client receives message and send ack

      - network failure - HornetQ does not receive ack

      - HornetQ resend message

      - client receive the same message again

       

       

      Is there a mechanism (such as nonce) that can prevent the second message from being received in the client or this is something I should implement in the application level?

       

       

      Thanks,

       

       

      Gil