rabbitmq-c
rabbitmq-c copied to clipboard
How to get return response after basic.publish
I have published message in non existing queue using some random routing queue. And it published successfully without any problems. Suppose i want error or Exception such a case how can i do ?? NOTE : I have published message with mandatory flag to true.
Hi,
I have the same issue. I am calling amqp_basic_publish() to publish to a non-existent exchange. I am waiting for answers in a dedicated thread using amqp_consume_message() but I don't get any response. Any tips?
As I remember you have to set confirmation mode for channel. After that If you will send messages with mandatory flag you will receive basic.return frame if some error occured