[JDEV] Online Roster Group

Ryan L. Hart ryanhart at rcn.com
Fri Sep 26 16:35:18 CDT 2003


I'm using xdb_sql to process roster queries. I would like to 
return a small group of online users in a separate group so 
that users have somebody to talk to. This much I'm doing, I 
return the logged in users with subscription = 'to' in group 
= 'Logged On'. These online users show up on the client side 
as expected, but they are all marked as Offline. This is 
obviously because there was never a corresponding 'from' 
subscription from the logged in users to this newly logged on 
user, so the Jabber server never sends the presence 
information.

Is there a good solution to this problem? I'm assuming I 
could have my clients repeatedly request presence for all the 
users in the 'Logged In' group, but that seems ugly. What 
about picking up newly logged in users every once in awhile? 
Would that be just having the client send another roster get 
request? That's less important though. I really just want 
the 'Logged In' group to show accurate presence information 
like all my other groups.

Thanks, Ryan



More information about the JDev mailing list