I use something like -
void ProtonMessageSender::on_connection_open(proton::connenction& c)
{
c.open_sender(address);
}
where address looks like "topic://my_topic_to_publish".
-----Original Message-----
From: EXT-Walsh, Jody R <[email protected]>
Sent: Tuesday, September 28, 2021 8:20 PM
To: [email protected]
Subject: qpid messaging api to activemq topic
[External Email]
________________________________
Hi,
Has anyone used the qpid c++ broker messaging api to connect to activemq and
send a message to a topic instead of a queue?
I am able to connect and send to a queue. To send to a topic, I need to prefix
the address with "topic://", but this is not accepted by the qpid messaging api.
If I use proton, I can use the topic:// prefix, and publish to the topic.
However, I cannot figure out how to do this with the qpid c++ messaging api.
I tried using the qpid messaging api syntax, such as: "my-topic; {assert:
always, create: never, node:{ durable: false, type: topic }}", but that just
results in it creating new queues.
Any help is appreciated.
Jody
________________________________
The preceding message (including attachments) is covered by the Electronic
Communication Privacy Act, 18 U.S.C. sections 2510-2512, is intended only for
the person or entity to which it is addressed, and may contain information that
is confidential, protected by attorney-client or other privilege, or otherwise
protected from disclosure by law. If you are not the intended recipient, you
are hereby notified that any retention, dissemination, distribution, or copying
of this communication is strictly prohibited. Please reply to the sender that
you have received the message in error and destroy the original message and all
copies.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]