[rabbitmq-discuss] rabbitmq-c confirmation

Alan Antonuk alan.antonuk at gmail.com
Tue Jul 9 08:29:24 BST 2013


Not quite.

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:
> http://rabbitmq.1065348.n5.nabble.com/rabbitmq-c-confirmation-tp27910p27916.html
> Sent from the RabbitMQ mailing list archive at Nabble.com.
> _______________________________________________
> rabbitmq-discuss mailing list
> rabbitmq-discuss at lists.rabbitmq.com
> https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20130709/f6725384/attachment.htm>


More information about the rabbitmq-discuss mailing list