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-subscr...@qpid.apache.org

Reply via email to