Hi,
I spent some time fighting with that issue and I managed to make it work, despite the numerous problems I had. Maybe I’‘m just a newbie, but still - I wan’'t to share my experience, so it might be usefull for someone.
Problem 1 : The groups do not appear.
So, the idea is to set the group shared and visible for all it’'s members. Normaly you should do that in your group provider getGroup() method :
theGroup.getProperties().put(“sharedRoster.displayName”, name);
theGroup.getProperties().put(“sharedRoster.groupList”, “”);
theGroup.getProperties().put(“sharedRoster.showInRoster”, “onlyGroup”);
but … actually you should also fire a group modified event after that, so don’'t forget to add this in getGroup() :
XMPPServer.getInstance().getRosterManager().groupModified(…)
Problem 2 : The users stay in the offline users group forever , a server restart needed to get them working :
Because the group cosntructor uses JIDs for the list of it’‘s memebers you need to convert the usernames to JIDs by adding the domain. What i did is to add a custom “xmpp.domain” and use this variable as domain source (don’'t forget to set it through the admin). So, setting xmpp.domain (and restart once after install) does the job. Because I had to restart after setting “xmpp.domain” , I suppose that the problem reported from other users with the shared groups and restarting is something similar.