STOMP: a way to check if a user is working before sending a message?

I am wondering if there is a way to check if the user is working before sending the message? I am using the latest php STOMP and struggling to find out if there is a way to detect if it is running before sending and to have messages that are just being created in the queue.

Thanks Steve

+3
source share
2 answers

Look at the BrokerStatisticsPlugin, available in AMQ, it allows your client to send a message, and the broker sends you all kinds of information about his current status.

See: http://activemq.apache.org/statisticsplugin.html

Hi

Tim www.fusesource.com

+3
source

ActiveMQ -, CURL xml/queues.jsp, XML <queue>,

<queue name="integration">
  <stats size="0" consumerCount="1" enqueueCount="92491" dequeueCount="92491"/>
  <feed>
    <atom>queueBrowse/integration?view=rss&amp;feedType=atom_1.0</atom>
    <rss>queueBrowse/integration?view=rss&amp;feedType=rss_2.0</rss>
  </feed>
</queue>

consumerCount <stats> node.

+1

Source: https://habr.com/ru/post/1789918/


All Articles