简体   繁体   中英

How to get a list of Stomp queues or/and topics (their names) as a client?

In Stomp, how can I browse all queues or/and topics available? Is it possible at all?

The key here is to get the result and the language is not important, it can be either python, ruby or java because as I've found out it's easier to do this particular task using them because of the existing libraries. Python seems to have only one most popular library, though.

Well, the simple answer is that you can't. That's not part of the Stomp protocol.

The complex answer, as always, is "it depends". It's entirely possible that whatever is providing your stomp service will have something that you can use. (In RabbitMQ, for example, you can log in to the web interface and look at the current queue names).

However the whole point of Stomp (and to a certain extent in all messaging) is that there aren't really "desintations", just queues which can be read by one or more clients. And the queues are transient; you might find the information deprecates pretty quickly...

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM