[rabbitmq-discuss] no error or exception
Gary Russell
grussell at gopivotal.com
Fri Nov 15 19:33:00 GMT 2013
See the various spring-amqp reference documentation sections about how to
configure the template (and connection factory) for 'publisher confirms'
http://docs.spring.io/spring-amqp/reference/html/amqp.html#d4e209
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).
On Fri, Nov 15, 2013 at 2:04 PM, PATAR, SAGAR <sp345s at att.com> wrote:
> Thanks Simon ..
>
> I am using spring rabbit template .. not sure how to implement the
> basic.ack (option 1) with the configuration ..
> Can you pl. provide some sample examples I can refer ..
>
>
> -----Original Message-----
> From: Simon MacMullen [mailto:simon at rabbitmq.com]
> Sent: Friday, November 15, 2013 8:37 AM
> To: Discussions about RabbitMQ
> Cc: PATAR, SAGAR
> Subject: Re: [rabbitmq-discuss] no error or exception
>
> On 15/11/2013 13:09, PATAR, SAGAR wrote:
> > But when we try to post a message it doesn't throw any exception
>
> That's because publishing is asynchronous. The channel will have closed
> due to the permission error but if you just publish and do nothing else
> your app won't notice.
>
> Ways you could notice:
>
> * Publish in confirm mode and await a basic.ack
> * Publish in mandatory mode and await a basic.return
> * Publish in a transaction
>
> These all have performance costs (in approximately increasing order).
>
> Cheers, Simon
> _______________________________________________
> 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/20131115/25704c4a/attachment.htm>
More information about the rabbitmq-discuss
mailing list