I have some doubts in getti开发者_如何学JAVAng the open server information to java program
- dispalying the already existing users to newly registred user
- add and delete from groups
For the first part: Usually, a user will only see his own contacts (in jabber terms: roster). If you maintain a xmpp server for a small community, you could implement a custom registration process:
- Create a group "allUsers" that will contain all users
- for each new user 2.1 create a new user account 2.2 add the user to that group
As a result, all members of the "allUser" group should be on the users roster
(Never did it myself and it may be necessary to implement this custom registration routine on the openfire server directly, because I fear, that the xmpp protocol does not support adding to and deleting from groups)
you can use "Registration Plugin" which can be found in plugins tab of open fire. Use that and change the registration settings to "add all registered users into a group"
精彩评论