On 20/02/2019 9:10 am, Jose Alberto Fernandez Parejo wrote:
We are using rabbitmq broker and we would like to use qpid-cpp-1.38.0
API to send/receive message to/from rabbitmq broker.
When we send to a queue works ok. But the problem is when we try to send
to a exchange.Is there any way to send to an exchange from
qpid-cpp-1.38.0 to rabbitmq broker?

You don't describe what the problem you are having is. To send to an exchange on rabbitmq via the 1.0 plugin[1] you use the '/exchange/' prefix to the address. The qpid::messaging API treats the '/' as special, separating the address from a 'subject'. To avoid that you can quote the address. So e.g. try sending to: "'/exchange/my-exchange/'" or "'/exchange/my-exchange/my-key'"

The rabbitmq 1.0 plugin also recognises '/topic/' prefix is a shortcut for the amq.topic standard exchange so you could also do "'/topic/my-key'"


[1] https://github.com/rabbitmq/rabbitmq-amqp1.0/blob/v3.7.12/README.md

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

Reply via email to