On 30 March 2016 at 20:41:34, Chuck Pence (
chuck...@gmail.com) wrote:
> For a publisher that retransmits a message during recovery,
> is there a way to explicitly set or something that must be done
> to get the broker to set the redelivered flag. I'm using a java
> client and there is a constructor for com.rabbitmq.client.Envelope
> that would allow me to explicitly create the envelope and set
> the flag, but I've found no way to use it as a publisher.
>
> If not, consumers that are not idempotent need to run every message
> through dedup logic/process not just those with the redelivered
> flag set. Am I missing something?
That flag is never set by publishers, only RabbitMQ. Publishers are free to add any additional headers