const char* host = argc>1 ? argv[1] : "127.0.0.1";
int port = argc>2 ? atoi(argv[2]) : 5672;
Connection connection;
try {
connection.open(host, port);
Session session = connection.newSession();
string request_queue = "request";
// Use the name of the request queue as the routing key
session.queueDeclare(arg::queue=request_queue);
session.exchangeBind(arg::exchange="amq.direct",
arg::queue=request_queue, arg::bindingKey=request_queue);
the broker's exception , it does't mather, but my client block at
session.queueDeclare call.
why?
--
View this message in context:
http://n2.nabble.com/Exchange-not-found%3A-amq.failover-tp2638317p2638686.html
Sent from the Apache Qpid developers mailing list archive at Nabble.com.
---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project: http://qpid.apache.org
Use/Interact: mailto:[email protected]