Re: QPID C++ API : How to check whether Queue/topic has any consumers

2020-07-03 Thread Gordon Sim
On 03/07/2020 6:34 am, mohank wrote: After sending utf8 encoded contentobject it is working fine. Great! Thanks for confirming! - To unsubscribe, e-mail: users-unsubscr...@qpid.apache.org For additional commands, e-mail: user

Re: QPID C++ API : How to check whether Queue/topic has any consumers

2020-07-02 Thread mohank
Hi Gordon, Thank you for the help. After sending utf8 encoded contentobject it is working fine. Posting working snippet below. Sender managementSender = session.createSender("activemq.management"); Message requestMessage; //Working combin

Re: QPID C++ API : How to check whether Queue/topic has any consumers

2020-07-01 Thread Gordon Sim
On 01/07/2020 9:40 am, mohank wrote: Hi Gordon, printf is dummy one. Inside content when I read the string getting empty. I have enable the Trace+:Protocol log. Kindly find the attached log. myclient.out The request message is bein

Re: QPID C++ API : How to check whether Queue/topic has any consumers

2020-07-01 Thread mohank
Hi Gordon, printf is dummy one. Inside content when I read the string getting empty. I have enable the Trace+:Protocol log. Kindly find the attached log. myclient.out Thanks, Mohan -- Sent from: http://qpid.2158936.n2.nabble.co

Re: QPID C++ API : How to check whether Queue/topic has any consumers

2020-06-30 Thread Gordon Sim
On 30/06/2020 7:03 pm, mohank wrote: Hi Gordon, The sent request message is reaching 'activeMQ.Management' and getting the response. But getcontent always shows empty string. But when I try to browse the data in Broker getting error * Displying body as unsupported "Unsupported message body type

Re: QPID C++ API : How to check whether Queue/topic has any consumers

2020-06-30 Thread mohank
Hi Gordon, The sent request message is reaching 'activeMQ.Management' and getting the response. But getcontent always shows empty string. But when I try to browse the data in Broker getting error * Displying body as unsupported "Unsupported message body type which cannot be displayed by hawtio"*

Re: QPID C++ API : How to check whether Queue/topic has any consumers

2020-06-30 Thread Gordon Sim
On 28/06/2020 6:47 pm, mohank wrote: Hi Gordon, Thanks for your reply. I have tried the below snippet to get the consumer Queue details, but I am not sure whether I am doing it correctly or not. I am not getting any exception and received response is always empty. Sender ma

Re: QPID C++ API : How to check whether Queue/topic has any consumers

2020-06-28 Thread mohank
Hi Gordon, Thanks for your reply. I have tried the below snippet to get the consumer Queue details, but I am not sure whether I am doing it correctly or not. I am not getting any exception and received response is always empty. Sender managementSender = session.createSender("a

Re: QPID C++ API : How to check whether Queue/topic has any consumers

2020-06-22 Thread Virgilio Fornazin
Ah it's using Artemis Broker... should look at Artemis list instead On Mon, Jun 22, 2020 at 3:01 PM Gordon Sim wrote: > On 22/06/2020 6:49 pm, Virgilio Fornazin wrote: > > show source code of qpid-stat tools, it does what you want > > Not really. That uses QMF which ActiveMQ Artemis will not und

Re: QPID C++ API : How to check whether Queue/topic has any consumers

2020-06-22 Thread Gordon Sim
On 22/06/2020 6:49 pm, Virgilio Fornazin wrote: show source code of qpid-stat tools, it does what you want Not really. That uses QMF which ActiveMQ Artemis will not understand. - To unsubscribe, e-mail: users-unsubscr...@qpid

Re: QPID C++ API : How to check whether Queue/topic has any consumers

2020-06-22 Thread Virgilio Fornazin
show source code of qpid-stat tools, it does what you want On Mon, Jun 22, 2020 at 8:59 AM Gordon Sim wrote: > On 22/06/2020 11:59 am, mohank wrote: > > Client : QPID C++ > > Broker : ActiveMQ Artemis > > > > Is there any possibility to check whether *topic address*/*queue* has any > > consumer?

Re: QPID C++ API : How to check whether Queue/topic has any consumers

2020-06-22 Thread Gordon Sim
On 22/06/2020 11:59 am, mohank wrote: Client : QPID C++ Broker : ActiveMQ Artemis Is there any possibility to check whether *topic address*/*queue* has any consumer? Using Artemis.cmd, JMS and rest API provided by ActiveMQ we can get this data. But is it possible to get the same using QPID C++

QPID C++ API : How to check whether Queue/topic has any consumers

2020-06-22 Thread mohank
Hi, Client : QPID C++ Broker : ActiveMQ Artemis Is there any possibility to check whether *topic address*/*queue* has any consumer? Using Artemis.cmd, JMS and rest API provided by ActiveMQ we can get this data. But is it possible to get the same using QPID C++ APIS(i.e. QMF, is it only restricte