Search code examples
javaspringrabbitmqstompsockjs

RabbitMQ and Spring: how to get all subscriptions


I'm using RabbitMQ, Spring and SockJS. My app generatea many different messages and posts them to rabbitmq via stomp. This generation requires a lot of resources so I want to know is there any subscriptions to rabbitmq and what kind of subscription it is (I need to know routing keys of this subscriptions) to avoid generating unnecessary messages. Is there any possibilities to get this information from Spring or any Java client library?


Solution

  • There is a library to get information from rabbitmq http api https://github.com/rabbitmq/hop