I wan to do this,who can give me a way, please?

I’‘ve created some additional fields in mysql database to implement more features.Now my problem is how to read/write these fields with a via wildfire connection? but not requesting a .php file with a http url. although it’'s a way live up to.i think the best way is: I post a request such as:

but how can i do that?without modify the wildfire source, any infomation can be given to me please?

Can you provide some more details about the extra information that you’'re storing and trying to retrieve? That will help give us a bit more context.



thanks for your reply.in this case,i wanna store more muc information such as: to remember a user is always in which room, so that we can get him/her in automatically when him/her signin. this feature is used for a “chatting group”.for examle, there’‘s a room with a travel topic, and then you’‘re a travel fan, there’‘re lots of ppl. in this room, when you signin ,you will be get into this room automatically. and for more, you will receive some information in this room such as: is there any activity recently? what’'s hot discourse recently?what news happened on other members? and so on…

you can image much more features to get ppl. more and more interactive.but all these features need extra fields in database and also a via communication for users.

my idea about is:

  1. write a bot signin as an user, all other user talk to it, and then it returns data.(it’'s kind of stupid)

  2. write a plugin jar use IQHandler. (i’‘m new to wildfire and i’'m not good at it)

  3. write .php and request overpass a HTTP Request such as “http://abc.com/getmyroomlist.php”. (it’'s very stupid and insecurity, but easy)

if you have more good idea about it, please tell me, thanks very much!

i’'m now work out a sample bot:

import org.jivesoftware.smack.*;

import org.jivesoftware.smack.packet.*;

public class MyBot {

public static void main(String[] args) throws Exception {

XMPPConnection connection = new XMPPConnection(“”);

PacketListener myListener = new PacketListener() {

public void processPacket(Packet packet) {

//do something here…




connection.addPacketListener(myListener, null);

connection.login(“admin”, “111111”);







and if write a class to read/write mysql it can be complete by have a chat conversion with user.

but i fell it’‘s kind of stupid. first, it needs a account and sign in as a user. second, wildfire must have it’'s own mysql class, then why to write another? last, it needs start another process with “java MyBot” command line.

i’'ve read this article:

url=http://www.jivesoftware.org/builds/wildfire/docs/latest/documentation/plugin -dev-guide.html

http://www.jivesoftware.org/builds/wildfire/docs/latest/documentation/plugin-dev -guide.html


but i havn’‘t found how to make a plugin. first of all, i even don’‘t know import which package? where’'s the package jar file for org.jivesoftware.wildfire.container.* ? smack only has org.jivesoftware.smack.* .i wonder if some one can give me a sample about how to write a plugin.

Thanks indead! and Meery Xmas _