You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by pclovec <pc...@gmail.com> on 2009/02/06 07:26:22 UTC

qpid-route can't link two broker

i have try to tested link two broker in one mahcine.

1. first using c++ declare_queue create two queue names message_queue and
two exchange amp.direct for each broker. 
sample: 
#./declare_queue 127.0.0.1:10003 and #./declare_queue 127.0.0.1:10004

2. the queue and exchange has created . i running command to link them
#qpid-route link add 127.0.0.1:10003 127.0.0.1:10004 
#qpid-route link add 127.0.0.1:10004 127.0.0.1:10003
check qpid-route link list 127.0.0.1 1003 
check qpid-route link list 127.0.0.1 1004

3. running qpid-route to map them
# qpid-route route add 127.0.0.1:10003 127.0.0.1:10004 amp.direct
"routing-key"
# qpid-route route add 127.0.0.1:10004 127.0.0.1:10003 amp.direct
"routing-key"
check 
#qpid-route route list 127.0.0.1:10003 
#qpid-route route list 127.0.0.1:10004 
i can saw the link map created. broker. exchange key...are seems works

now i guess this two brokers and two exchange has map success. 

then i running 
#./direct_producer 127.0.0.1 10003 to send the message .it show me success.
and i running 
#./listener 127.0.0.1 1004 to get message .show me the error.

i don't know what i miss?

thanks




-- 
View this message in context: http://www.nabble.com/qpid-route-can%27t-link-two-broker-tp21867263p21867263.html
Sent from the Qpid Developers mailing list archive at Nabble.com.


---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org


Re: qpid-route can't link two broker

Posted by Ted Ross <tr...@redhat.com>.
pclovec wrote:
> i have try to tested link two broker in one mahcine.
>
> 1. first using c++ declare_queue create two queue names message_queue and
> two exchange amp.direct for each broker. 
> sample: 
> #./declare_queue 127.0.0.1:10003 and #./declare_queue 127.0.0.1:10004
>
> 2. the queue and exchange has created . i running command to link them
> #qpid-route link add 127.0.0.1:10003 127.0.0.1:10004 
> #qpid-route link add 127.0.0.1:10004 127.0.0.1:10003
> check qpid-route link list 127.0.0.1 1003 
> check qpid-route link list 127.0.0.1 1004
>
> 3. running qpid-route to map them
> # qpid-route route add 127.0.0.1:10003 127.0.0.1:10004 amp.direct
> "routing-key"
> # qpid-route route add 127.0.0.1:10004 127.0.0.1:10003 amp.direct
> "routing-key"
> check 
> #qpid-route route list 127.0.0.1:10003 
> #qpid-route route list 127.0.0.1:10004 
> i can saw the link map created. broker. exchange key...are seems works
>
> now i guess this two brokers and two exchange has map success. 
>
> then i running 
> #./direct_producer 127.0.0.1 10003 to send the message .it show me success.
> and i running 
> #./listener 127.0.0.1 1004 to get message .show me the error.
>
> i don't know what i miss?
>
> thanks
>
It looks like you mis-typed the routing key in your "qpid-route route 
add" commands.  The direct example uses "routing_key" (with an 
underscore).  You typed "routing-key" (with a hyphen).

-Ted


---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org