【发布时间】:2016-05-19 18:33:00
【问题描述】:
我对 Qpid Proton 中最微不足道的步骤有疑问。这是我的设置
qpid-config -a localhost:5672 add exchange test.announce
qpid-config -a localhost:5672 add queue test.announce.q
qpid-config -a localhost:5672 bind test.announce test.announce.q
(没有特意指定路由键) 当我使用以下内容运行质子 cpp 服务器和客户端时
./server -a amqp://127.0.0.1:5672/test.announce
./client -a amqp://127.0.0.1:5672/test.announce.q
客户端无法与服务器通信。但是使用独立的 qpid 工具
qpid-receive -a test.announce.q -b 127.0.0.1:5672 -t -f
echo "hello world!!!"|qpid-send -b 127.0.0.1:5672 -a test.announce -m 1 --content-stdin
这按预期工作。 对 Proton 服务器运行 qpid-send 似乎也可以正常工作。我在 Proton 消息 API 中看不到任何可以更新的内容,也不确定我在这里缺少什么。服务器和客户端代码与 0.12 快照中的代码几乎相同。有什么想法吗?
【问题讨论】: