[rabbitmq-discuss] Handling consumer cancellation notifications

Simon MacMullen simon at rabbitmq.com
Tue Jun 26 11:28:18 BST 2012


On 25/06/12 19:11, as4j1th wrote:
> To create a mirrored queue, we are using x-ha-policy and to get consumer
> cancellation notifications we have put true for consumer_cancel_notify
> in clientProperties.

> Not sure what we are doing wrong. Any pointers would be highly appreciated.

You would need to put consumer_cancel_notify as true *in a map called 
"capabilities"* in clientProperties.

However, you don't actually need to do this at all, since the Java 
client already sets this for you.

So just remove "factory.setClientProperties(clientProperties);" from 
your example app and it will work.

Cheers, Simon

-- 
Simon MacMullen
RabbitMQ, VMware


More information about the rabbitmq-discuss mailing list