locked
How can I return a message back to a queue and increase its DeliveryCount? RRS feed

  • Question

  • Hi, 
    I'm consuming messages in an Azure Service Bus Queue, from my external application.

    But when a fault happens in my application, I want to push back the message to the queue (so the queue should identify that its the same old message and accept it and increase its DeliveryCount).

    How can I do that?
    Currently, when I push the message back, the queue identify it as a new one. How can I convince the queue that it is the same old message?

    Please note I'm sending the message from JMS (amqp) call. I'm not able to use a client SDK from my application.

    Thank you.



    Tuesday, May 26, 2020 1:37 PM

All replies

  • I'm think if there is anyway to send a HTTP 500 response to the queue with relating to the message I've consumed, so that queue know that the attemp failed and activate the message in the queue again...
    Tuesday, May 26, 2020 1:41 PM