[rabbitmq-discuss] rabbitmq-c: amqp_exchange_declare() always sets auto-delete to no

Matthew Sackman 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:

http://hg.rabbitmq.com/rabbitmq-codegen/file/dfff9832e2d7/amqp-rabbitmq-0.9.1.json#l208

Whilst our xml version suggests it's still deprecated:

http://hg.rabbitmq.com/rabbitmq-dotnet-client/file/c3e4a852f309/docs/specs/amqp0-9-1.xml#l1270

What a mess!

Matthew


More information about the rabbitmq-discuss mailing list