Implementing a Dynamic Roster

Submitted by Anonymous on Mon, 2008-07-14 12:37.

I've been tinkering with the Tigase 3.3.2 source trying to get an embeddable replacement for OpenFire (we use OpenFire as part of our customer helpdesk).

I've written an user repository class and an authentication class which allows support staff and customers to login using our smack-based client (I had to use smack from SVN head (>= 10566) to get authentication working).

There is no local storage of users & user info - everything is cached in memory and all accounts are temporary and created as necessary based on proper authentication.

I need to implement dynamic rosters. I took a stab at my own dynamic rosters by having my user repository create & maintain all groups and push this info to the user as the "private" roster. The group creation and maintenance code is working fine and everything is current *on the server*.

My problem is with roster updates. They don't happen and I'm not sure how to trigger them. When User A logs in he/she gets the current group/roster info. User B logs in after User A logs in. User A will get the presence packet from User B, but will not have User B in his/her roster.

Should I subclass DynamicRosterIfc? Will that help me with client roster updates or will that not change anything on the client side? Is there a sample implementation of DynamicRosterIfc? That interface is not documented and there does not appear to be an implementation in the 3.3.2 server sources.

Thanks,
James

Trackback URL for this post:

http://www.tigase.org/en/trackback/1431

Reply

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options

Captcha
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Copy the characters (respecting upper/lower case) from the image.