You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@qpid.apache.org by kevency_poche <ke...@gmail.com> on 2013/09/04 09:11:00 UTC

Ambiguous address, please specify queue or topic as node type ??

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. 
http://mail-archives.apache.org/mod_mbox/qpid-dev/201112.mbox/%3C7a3f38e4-f32f-481a-8f94-02247468a251@zmail16.collab.prod.int.phx2.redhat.com%3E
<http://mail-archives.apache.org/mod_mbox/qpid-dev/201112.mbox/%3C7a3f38e4-f32f-481a-8f94-02247468a251@zmail16.collab.prod.int.phx2.redhat.com%3E> 
Thank you



--
View this message in context: http://qpid.2158936.n2.nabble.com/Ambiguous-address-please-specify-queue-or-topic-as-node-type-tp7597801.html
Sent from the Apache Qpid users mailing list archive at Nabble.com.

Re: Ambiguous address, please specify queue or topic as node type ??

Posted by kevency_poche <ke...@gmail.com>.
>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. 

 Thank you Gordon. I do remember now. In this spout and drain we have to
specify the Addresses.
          An address is the name of a message target or message source.  The
methods that create 
senders and receivers require an address. The details of sending to a
particular target or receiving 
from a particular source are then handled by the sender or receiver. A
different target or source can 
be used simply by using a different address.

Clear documentation available in the following thread. 

http://qpid.apache.org/books/0.12/Programming-In-Apache-Qpid/html/ch02s04.html
<http://qpid.apache.org/books/0.12/Programming-In-Apache-Qpid/html/ch02s04.html>  

Thank you very much for immediate response. 



--
View this message in context: http://qpid.2158936.n2.nabble.com/Ambiguous-address-please-specify-queue-or-topic-as-node-type-tp7597801p7597803.html
Sent from the Apache Qpid users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
For additional commands, e-mail: users-help@qpid.apache.org


Re: Ambiguous address, please specify queue or topic as node type ??

Posted by Gordon Sim <gs...@redhat.com>.
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: users-unsubscribe@qpid.apache.org
For additional commands, e-mail: users-help@qpid.apache.org