[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[xmlblaster] Re: plugin help
Zhou Dong wrote:
Hi,
1. How can I write my own plugin to return content?
Such as :
I call con.get("<key oid='__cmd:?freeMem'/>", null); it returns the
value of FreeMemory.
Now I want to call : con.get("<keyoid='__mycmd:?Hello'/>", null); it
returns “Hello OK”,
How to write that plugin?
I probably don't understand the question.
Just publish a message which contains 'Hello OK' and retrieve it with
the synchronous get() method.
2.How to know the users who are online?
There are 3 internal messages which handle users, the key oid (topic) is
__sys__Login
__sys__Logout
__sys__UserList
you can subscribe to those messages, the content contains the user name.
See
xmlBlaster/testsuite/src/java/org/xmlBlaster/test/authentication/TestLoginLogoutEvent.java
3.How to know how much messages and bytes have been transferred
between 8:00 to 9:00?
There is currently no such support in xmlBlaster.
You can implement it with a client snooping messages (subscribe to them)
and doing the statics itself
or write a publish plugin which does this, see:
http://www.xmlblaster.org/xmlBlaster/doc/requirements/mime.plugin.publishfilter.html
4.Can I use MySQL with xmlBlaster?
There is no port for this, but it shouldn't be too complicated (probably
only configurations to change) see:
http://www.xmlblaster.org/xmlBlaster/doc/requirements/queue.jdbc.html
5.How to transfer a file/message which should compress when send, and
decompress when receive?
This was planned since beginning but nobody has implemented it yet,
you have to do it your own with the java zip utility.
regards
Marcel
Thanks
ZhouDong
2003.3.6