On 26/05/2020 8:08 am, mohank wrote:
Hi,

Client : QPID C++ 1.36 AMPQ 1.0
Broker : RabbitMQ 3.8

Is there any QPID C++ API to create Queue, and bind routing to the same
grammatically.

tried below commands:

*Create Queue name called "Service_Queue"*
          Receiver receiver = session.createReceiver("service_queue");
*Create temp Queue, with routing key "#.news"*
          Receiver receiver = session.createReceiver("'/topic/#.news'")
*I want to create Queue news and routing key in receiver link*
tried below command didn't create Queue news, created temp Queue and bind
the routing key.
         Receiver receiver =
session.createReceiver("amq.topic/#.news;{node:{capabilities:[shared]},
link:{name: 'news'}}");

From https://github.com/rabbitmq/rabbitmq-amqp1.0#routing-and-addressing:

    "/exchange/"  X "/" RK  Consume from temp queue bound to X
                            with routing key RK

So you could try "'/exchange/amq.topic/#.news'" (the quotes are required)


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to