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

Re: [xmlblaster] [xmlBlaster] Querying xmlBlaster for info



Madere, Colin wrote:

Is there a way to query (via a message send to the server) xmlBlaster server
info such as the names of client connections or existing publications, etc?

Hi Colin,

1. Client connections:

TestLoginLogoutEvent.java is an example how to do it:

http://www.xmlblaster.org/xmlBlaster/testsuite/src/java/org/xmlBlaster/test/authentication/TestLoginLogoutEvent.java.html

You can subscribe or access

/__sys__Login
//__sys__Logout
//__sys__UserList

/messages where you see the client connections.

The administrative interface (with __cmd messages or telnet)
allows the same, see

http://www.xmlblaster.org/xmlBlaster/doc/requirements/admin.commands.html

e.g. this queries the known clients (you can try it with telnet):
"/node/heron/clientList"


2. Known topics ('publications')

You can query this with XPath: "//key"

regards,
Marcel