On 06/29/2011 12:06 PM, Jiri Krutil wrote:
I have observed that # only seems to be expanded if I use delete:always.
Is that so?

No, that should not be the case.

If you set auto-delete, then the queue is deleted by the broker when
no longer used as per the rules in AMQP 0-10.

My impression is that I should use auto-delete:True but not
delete:always.

Yes, at present that is my preference also.

But then the # won't expand.

It should do. If I change the client example[1] to use auto-delete rather than delete:always[2], the response queue name is still expanded to a full UUID. The declare issued is:

{QueueDeclareBody: queue=ede4138e-b708-4454-b9a6-e5ef195ebda6#response-queue; alternate-exchange=; passive=1; arguments={}; }

[1] https://svn.apache.org/repos/asf/qpid/trunk/qpid/cpp/examples/messaging/client.cpp

[2] e.g.

Index: examples/messaging/client.cpp
===================================================================
--- examples/messaging/client.cpp       (revision 1139306)
+++ examples/messaging/client.cpp       (working copy)
@@ -48,7 +48,7 @@
         Sender sender = session.createSender("service_queue");

         //create temp queue & receiver...
- Address responseQueue("#response-queue; {create:always, delete:always}"); + Address responseQueue("#response-queue; {create:always, node:{x-declare:{auto-delete:True, exclusive:True}}}");
         Receiver receiver = session.createReceiver(responseQueue);

        // Now send some messages ...

---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:[email protected]

Reply via email to