Hi

Maybe this helps:

In my app I change the user's roster from a second client. One client is the 
buddy list client, the other may be a script. The script sends changes to the 
roster and the server pushes the changes to both clients AND updates the 
database. If you change it in the database you lack the trigger. You either 
need a trigger for the server to pull it and push it to the client OR for the 
client to pull it. With my second client I tell the server to change the roster 
and it does what it always does. 

Maybe you should use a script client to do the changes instead of manipulating 
the database directly. Don't know if this works in your case, because the 
scripted client would have to log in to the server as the user in question. 
Possibly many, one after the other. I don't know if there is a method to log in 
as a user without knowing the user's credentials. Would need some kind of admin 
access. But doing it as a client seems the right way to me, because everything 
is already there. 

hw
--
Dr. Klaus H. Wolf
bluehands GmbH & Co.mmunication KG
http://www.bluehands.de/people/hw
+49 (0721) 16108 75
--
Jabber enabled Virtual Presence on the Web: http://www.lluna.de/
Open Source Future History: http://www.galactic-developments.com/






>-----Original Message-----
>From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf
>Of Steve Gertz
>Sent: Tuesday, February 08, 2005 11:10 PM
>To: [email protected]
>Subject: [jdev] Changing user rosters while user is online?
>
>
>Hello!
>
>I have a standardized roster for everyone in the organization.  When I 
>add or remove people from the mysql database though, the changes don't 
>appear until the client does a roster pull.  Is there any way 
>to do this 
>in a more jabber-isk way?  I've found the sm/mod_roster.c -> 
>_roster_push that adds people to other logged in clients, but I can't 
>find an easy way of connecting this code base with another chunk of c 
>that would run this on an ad-hoc basis.
>
>Does anyone have ideas on how to help?
>
>Thanks in advance,
>Steve
>
>-- 
>
>Steve Gertz
>citysearch.com
>
>_______________________________________________
>jdev mailing list
>[email protected]
>http://mail.jabber.org/mailman/listinfo/jdev
>
_______________________________________________
jdev mailing list
[email protected]
http://mail.jabber.org/mailman/listinfo/jdev

Reply via email to