Groups not updated on Roster from Database using custom DB

We are using an external database for users and groups, on Openfire 3.6.4 with our own client through Xiff.

When a user is added on our database, the roster doesn’t get updated. I am logged in as “User1”. “User2” is added to the database to the same shared group, so I should see him in my roster. User2 can login and see User1 on his roster, but User1’s roster hasn’t been updated. Even after log out, User2 still doesn’t show up on User1’s roster.

Apparently the problem comes from Openfire. The groups get updated with the new contacts on the roster only after Openfire is restarted.

I looked into the incoming data from Openfire while the client was running, but I never received any data of new users being added to the database.

Where should I look into to fix this on Xiff? Should I add some kind of listener to check if there are new users on my groups? I think this would overload the server a lot if each client checks for new users every now and then, right?

I am having the same issues with AD integration. This partially resolves my issue:

http://www.igniterealtime.org/community/docs/DOC-1673

The rest is the changes aren’t showing up on the client (I use Spark) unless I logout and login again.