[rabbitmq-discuss] rabbitmq-c: amqp_exchange_declare() always sets auto-delete to no
matthew at rabbitmq.com
Wed Jul 6 23:48:55 BST 2011
On Wed, Jul 06, 2011 at 11:34:55PM +0100, David Wragg wrote:
> <Lowell.Boggs at emc.com> writes:
> > Is there a reason that you cannot create an exchange with the
> > auto_delete property == true?
> Auto-delete on exchanges is a AMQP 0-8 feature that is deprecated in
> AMQP 0-9-1. This is why the amqp_exchange_declare function does not
> expose it (ever since it was converted to AMQP 0-9-1).
We undeprecated it. RabbitMQ server supports auto-delete on exchanges
for 0-9-1 clients.
http://www.rabbitmq.com/releases/rabbitmq-java-client/v2.5.1/rabbitmq-java-client-javadoc-2.5.1/com/rabbitmq/client/Channel.html#exchangeDeclare(java.lang.String, java.lang.String, boolean, boolean, boolean, java.util.Map)
However, our 0-9-1 reference guide still leaves it as just a "reserved"
bit - http://www.rabbitmq.com/amqp-0-9-1-reference.html#class.exchange
I thought there was a bug about fixing this, but I can't find it. Our
json version fully undeprecates it:
Whilst our xml version suggests it's still deprecated:
What a mess!
More information about the rabbitmq-discuss