This is my first post on the forum and so I wanted to say hello to everyone:
And now about my problem: I am trying to write a plugin that connects
to a remote database, gets user data and imports it to openfire
database. I am using that code to add user to a roster:
rosterItem = new RosterItem(userJID,RosterItem.SUB_BOTH, RosterItem.ASK_NONE,RosterItem.RECV_NONE , userToUpdate.getName(), userGroupList);
The plugin compiles, it starts, it imports users BUT without a server restart there are no changes visible in user’s rosters. After the restart everything is OK, all the users have their rosters updated. Is that restart required or am I missing something?
Thank you for your answers!