plugin.addRosterItem(username, rosterUserJid, rosterUserNick, null, null);
and in the plugin UserServicePlugin.java
RosterItem ri = r.createRosterItem(j, itemName, groups, true, true);
The createRosterItem method has the following line of code in it…
- @param push True if the new item must be push to the user.
__ * @param persistent True if the new roster item should be persisted to the DB.__
- @param groups The list of groups to assign this roster item to (can be null)
public RosterItem createRosterItem(JID user, String nickname, List groups**, boolean push,**
The problem is that even when the parameter ‘persistent’ is set to true, the db still does not get updated with this information.
Note this used to work on older Openfire version but stopped working once Openfire was upgraded to 3.10.
Any ideas on what is wrong and how this can be solved ? Let me know if any more information/logs are required.