[rabbitmq-discuss] no error or exception
PATAR, SAGAR
sp345s at att.com
Fri Nov 15 19:04:19 GMT 2013
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
More information about the rabbitmq-discuss
mailing list