<div dir="ltr">See the various spring-amqp reference documentation sections about how to configure the template (and connection factory) for &#39;publisher confirms&#39;�<a href="http://docs.spring.io/spring-amqp/reference/html/amqp.html#d4e209">http://docs.spring.io/spring-amqp/reference/html/amqp.html#d4e209</a><div>
<br></div><div>Essentially, when you send a message, you provide some correlation data; when the ack is received, you get a callback with the result (ack/nack) together with the correlation data (so you know which message the ack is for).</div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Nov 15, 2013 at 2:04 PM, PATAR, SAGAR <span dir="ltr">&lt;<a href="mailto:sp345s@att.com" target="_blank">sp345s@att.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Thanks Simon ..<br>
<br>
I am using spring rabbit template .. not sure how to implement the basic.ack (option 1) with the configuration ..<br>
Can you pl. provide some sample examples I can refer ..<br>
<br>
<br>
-----Original Message-----<br>
From: Simon MacMullen [mailto:<a href="mailto:simon@rabbitmq.com">simon@rabbitmq.com</a>]<br>
Sent: Friday, November 15, 2013 8:37 AM<br>
To: Discussions about RabbitMQ<br>
Cc: PATAR, SAGAR<br>
Subject: Re: [rabbitmq-discuss] no error or exception<br>
<br>
On 15/11/2013 13:09, PATAR, SAGAR wrote:<br>
&gt; But when we try to post a message it doesn&#39;t throw any exception<br>
<br>
That&#39;s because publishing is asynchronous. The channel will have closed<br>
due to the permission error but if you just publish and do nothing else<br>
your app won&#39;t notice.<br>
<br>
Ways you could notice:<br>
<br>
* Publish in confirm mode and await a basic.ack<br>
* Publish in mandatory mode and await a basic.return<br>
* Publish in a transaction<br>
<br>
These all have performance costs (in approximately increasing order).<br>
<br>
Cheers, Simon<br>
_______________________________________________<br>
rabbitmq-discuss mailing list<br>
<a href="mailto:rabbitmq-discuss@lists.rabbitmq.com">rabbitmq-discuss@lists.rabbitmq.com</a><br>
<a href="https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss" target="_blank">https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss</a><br>
</blockquote></div><br></div>