rabbitmq-c icon indicating copy to clipboard operation
rabbitmq-c copied to clipboard

How to get return response after basic.publish

Open chints34 opened this issue 10 years ago • 2 comments
trafficstars

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.

chints34 avatar Oct 01 '15 11:10 chints34

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?

ghost avatar Nov 02 '15 14:11 ghost

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

Haster2004 avatar Jan 13 '16 09:01 Haster2004