Implementing a Dynamic Roster
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:
- Add new comment
- 1119 reads






Recent comments
6 hours 5 min ago
10 hours 21 min ago
1 day 10 hours ago
1 day 23 hours ago
2 days 8 min ago
2 weeks 3 days ago
2 weeks 3 days ago
3 weeks 1 day ago
3 weeks 1 day ago
7 weeks 3 days ago