On Thu, 1 Jul 2021 at 13:18, Gordon Sim <g...@redhat.com> wrote: > > On Thu, Jul 1, 2021 at 1:08 PM rahul.sin...@morganstanley.com > <rahul.sin...@morganstanley.com> wrote: > > 1. As per Robbie's suggestion, I have tried adding topic:// in the past > > as well but the address and name selection gets chopped off from our end > > (after topic: ) in the outgoing AMQP frame to Broker. > > > > Our Code - > > qpid::messaging::Receiver topic_receiver = > > session.createReceiver("topic://ID.ExampleTopic; {node:{type:topic}}" > > "); > > You need some ugly quoting in there, netsed single quotes around the > address, e.g.: > > session.createReceiver("'topic://ID.ExampleTopic'; {node:{type:topic}}"); > > That prevents the '/' being misinterpreted. (It has special meaning in > the qpid::messaging address syntax, which we don't want here). > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@qpid.apache.org > For additional commands, e-mail: users-h...@qpid.apache.org >
What Gordon said with the quoting should work to get it to parse correctly, I forgot about that being needed (as its not a combination I've really used myself). Note I wasnt suggesting you do both the prefix and the 'type:topic' node config though, as I dont think ActiveMQ 5 actually looks for the terminus 'topic' capability that adds, rather it uses the address name and looks for a name prefix of "topic://" (something which e.g the JMS client adds itself under the covers based on values the broker advertises at connection open time). --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@qpid.apache.org For additional commands, e-mail: users-h...@qpid.apache.org