On 09/04/2013 08:11 AM, kevency_poche wrote:
I added one queue and exchange with same name. I binded both of them. Up to
now it is okay. But, when i try to do "spout" and "drain" for the exchange.
It is giving this. " Ambiguous address, please specify
queue or topic as node type"I am understanding that there will be definitely
the ambiguity whether it is queue or exchange. How to solve this problem and
how to specify the *node type * ??I gone through this thread. But, i am not
understanding this exactly.
Instead of an address like:
my-node
use:
'my-node; {node:{type:topic}}'
to indicate you want to send to and/or receive from the exchange, and/or:
'my-node; {node:{type:queue}}'
to indicate you want to send to and/or receive from the queue.
The client library (when using AMQP 0-10), tries to determine whether
the named node is a queue or exchange as this will affect how it need to
interact with the broker. Where the name uniquely identifies it, this is
straightforward. Where the name could be either a queue or an exchange
the library can't know for sure which was intended. The c++ client in
this case will throw the exception you see.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]