Search code examples
phpactivemq-classicstomp

STOMP: Way to check if a consumer is running before sending a message?


I'm wondering if there is a way to check if a consumer is running before sending a message? I'm using the latest php STOMP and am struggling to see if there's a way to detect if it's running before sending and having messages just build up in queue.

Thanks, Steve


Solution

  • Have a look at the BrokerStatisticsPlugin that's available in AMQ, it allows your client to send a message and have the broker send you all sorts of nice information about its current state.

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

    Regards

    Tim www.fusesource.com