[rabbitmq-discuss] rabbitmq-c confirmation
alan.antonuk at gmail.com
Tue Jul 9 08:29:24 BST 2013
The result from amqp_basic_publish() means that the library was able to
successfully write the message to the network. This does not mean that the
message was published successfully.
By default the broker will not send anything back to the client when it
publishes a message unless an error occurs (such as publishing to an
exchange that doesn't exist).
You need to use the code referenced earlier on the list in order to do
publisher confirms with rabbitmq-c.
On Mon, Jul 8, 2013 at 11:30 PM, 3k4b251 <314992959 at qq.com> wrote:
> I usually do like this:
> res = amqp_basic_publish(....);
> if(res <0)
> // Publish faild
> //Publish Ok.
> It menns message already pass to queue or exchange ?
> if not, I try to use confirm like you say .
> I'd like to use amqp_wait_simple_frame() after amqp_basic_publish();
> But it seems like that I just receive the message body header and
> others. not the ack.
> View this message in context:
> Sent from the RabbitMQ mailing list archive at Nabble.com.
> rabbitmq-discuss mailing list
> rabbitmq-discuss at lists.rabbitmq.com
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the rabbitmq-discuss