[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [xmlblaster-devel] How to check for subscribers of a topic?

sweemeng at dso.org.sg wrote:
Hi, I'm a new user to XMLBlaster.  How do I check whether there is any
subscriber subscribed to a topic?  Thank you.

Wee Meng.

Here is a telnet example:

Here is a telnet example:

telnet localhost 2702
 Connected to localhost.
 Escape character is '^]'. << connect joe secret
 Successful login for user joe, session timeout is  [ 1 h 0 millis ] << get topic/Hello/?getSubscribers

It is possible to send the  'get topic/Hello/?getSubscribers' command
as a xmlBlaster message:

  <key oid='__cmd:?topic/Hello/?getSubscribers'/>

or over JMX as well (see jconsole).
See http://www.xmlblaster.org/xmlBlaster/doc/requirements/admin.commands.html

Further you can be automatically notified about subscribers coming and going, see