You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@qpid.apache.org by "EXT-Walsh, Jody R" <Jo...@boeing.com> on 2021/09/29 00:19:45 UTC
qpid messaging api to activemq topic
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
RE: qpid messaging api to activemq topic
Posted by "Shipley, Glen" <GS...@asrcfederal.com.INVALID>.
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 <Jo...@boeing.com>
Sent: Tuesday, September 28, 2021 8:20 PM
To: users@qpid.apache.org
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: users-unsubscribe@qpid.apache.org
For additional commands, e-mail: users-help@qpid.apache.org
RE: [EXTERNAL] Re: qpid messaging api to activemq topic
Posted by "EXT-Walsh, Jody R" <Jo...@boeing.com>.
Thank you for this. That worked perfectly.
-----Original Message-----
From: Gordon Sim <gs...@redhat.com>
Sent: Wednesday, September 29, 2021 2:27 AM
To: users@qpid.apache.org
Subject: [EXTERNAL] Re: qpid messaging api to activemq topic
EXT email: be mindful of links/attachments.
On Wed, Sep 29, 2021 at 1:25 AM EXT-Walsh, Jody R <Jo...@boeing.com> wrote:
> 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.
You need to add inner quotes around the topic, so e.g. "'topic://my-topic'"
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org For additional commands, e-mail: users-help@qpid.apache.org
Re: qpid messaging api to activemq topic
Posted by Gordon Sim <gs...@redhat.com>.
On Wed, Sep 29, 2021 at 1:25 AM EXT-Walsh, Jody R
<Jo...@boeing.com> wrote:
> 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.
You need to add inner quotes around the topic, so e.g. "'topic://my-topic'"
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
For additional commands, e-mail: users-help@qpid.apache.org