You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@qpid.apache.org by mottese <mo...@sandia.gov> on 2017/06/07 20:03:09 UTC
QMF Request from Qpid JMS
I am using JMS 0.11.1 (Have to use Java 7) and was wondering how I can use
QMF to get a list of bindings from the broker. Using C++ I would have done:
Sender s = session.createSender("qmf.default.direct/broker");
Message request;
request.setContentType("amqp/map");
request.setProperty("x-amqp-0-10.app-id", "qmf2");
request.setProperty("qmf.opcode", "_query_request");
Variant::Map schemaId;
schemaId["_class_name"] = "binding";
Variant::Map content;
content["_what"] = "OBJECT";
content["_schema_id"] = schemaId;
request.setContentObject(content);
s.send(request);
How would I do this via JMS? Thanks
--
View this message in context: http://qpid.2158936.n2.nabble.com/QMF-Request-from-Qpid-JMS-tp7663863.html
Sent from the Apache Qpid users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
For additional commands, e-mail: users-help@qpid.apache.org
Re: QMF Request from Qpid JMS
Posted by mottese <mo...@sandia.gov>.
Chris Richardson wrote
> Hi mottese,
>
> I think I've actually read your post properly this time ;)
> You might find some info in this post from last December (this assumes
> you're using the C++ broker):
> http://qpid.2158936.n2.nabble.com/Qpid-QMF-with-qpid-jms-client-0-10-0-td7656627.html
>
> In that thread I attached a java class which does something similar
> for queues and exchanges using JMS and QMF. The OP also posted some
> feedback with an account of their experiences.
>
> Chris
Thanks Chris. This worked for me.
--
View this message in context: http://qpid.2158936.n2.nabble.com/QMF-Request-from-Qpid-JMS-tp7663863p7663869.html
Sent from the Apache Qpid users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
For additional commands, e-mail: users-help@qpid.apache.org
Re: QMF Request from Qpid JMS
Posted by Chris Richardson <cr...@fourc.eu>.
Hi mottese,
I think I've actually read your post properly this time ;)
You might find some info in this post from last December (this assumes
you're using the C++ broker):
http://qpid.2158936.n2.nabble.com/Qpid-QMF-with-qpid-jms-client-0-10-0-td7656627.html
In that thread I attached a java class which does something similar
for queues and exchanges using JMS and QMF. The OP also posted some
feedback with an account of their experiences.
Chris
On 7 June 2017 at 21:03, mottese <mo...@sandia.gov> wrote:
> I am using JMS 0.11.1 (Have to use Java 7) and was wondering how I can use
> QMF to get a list of bindings from the broker. Using C++ I would have done:
>
> Sender s = session.createSender("qmf.default.direct/broker");
>
> Message request;
> request.setContentType("amqp/map");
> request.setProperty("x-amqp-0-10.app-id", "qmf2");
> request.setProperty("qmf.opcode", "_query_request");
> Variant::Map schemaId;
> schemaId["_class_name"] = "binding";
> Variant::Map content;
> content["_what"] = "OBJECT";
> content["_schema_id"] = schemaId;
>
> request.setContentObject(content);
> s.send(request);
>
> How would I do this via JMS? Thanks
>
>
>
> --
> View this message in context: http://qpid.2158936.n2.nabble.com/QMF-Request-from-Qpid-JMS-tp7663863.html
> Sent from the Apache Qpid users mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
> For additional commands, e-mail: users-help@qpid.apache.org
>
--
Chris Richardson, System Architect
cr@fourc.eu
FourC AS, Vestre Rosten 81, Trekanten, NO-7075 Tiller, Norway
www.fourc.eu
Follow us on LinkedIn, Facebook, Google+ and Twitter!
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
For additional commands, e-mail: users-help@qpid.apache.org