On 10/17/2011 05:39 PM, Robbie Gemmell wrote:
Whether an exchange exists with that name should be irrelevant if
queues are the default. It also certainly isnt what the documentation
says:

"The node-type is one of:

     topic: in the AMQP 0-10 mapping, a topic node defaults to the
topic exchange, x-declare may be used to specify other exchange types

     queue: this is the default node-type"

That text should be changed to avoid confusion. My suggestion would be to simply state in this section on grammar that the node-type is one of queue or topic, and leave more detailed explanations to other sections.

Examples 2.4 and 2.5 show how the type of the node affects the behaviour though the client in both cases simply refers to the node by name (without qualifying the type).

In the section on the AMQP 0-10 mapping it also states:

  "The interaction with the broker triggered by creating a sender
   or receiver depends on what the specified address resolves to.
   Where the node type is not specified in the address, the client
   queries the broker to determine whether it refers to a queue or
   an exchange."

If you specify the node should be created on-demand, it doesn't exist and the type is not specified in the address, *then* a queue is assumed. I suspect that is what the text you quoted is meant to convey.

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

Reply via email to