[JDEV] Storing custom information in a Roster

Peter Millard me at pgmillard.com
Mon May 13 15:30:28 CDT 2002


Bharath -

You should always avoid adding extra tags into a roster entry simply because
a client application doesn't know if that information will be persisted on
the server. Different types of XDB implementations will either throw this
out, or actually store it. You should store this information in the
jabber:iq:private namespace.

Peter M.

----- Original Message -----
From: "M Bharat Kumar" <mbk at csa.iisc.ernet.in>
To: <jdev at jabber.org>
Sent: Saturday, May 11, 2002 4:51 AM
Subject: [JDEV] Storing custom information in a Roster


> Hi,
>
> I'm a recent Jabber convert. I intend to use Jabber for some custom
> purposes. Here, I require to store some extra information about contacts.
> To be more specific, as a Jabber user, I have many contacts. Information
> about these contacts are stored in the Roster, which is made persistent at
> the server. In my application, I need to store some credibility
> information about each buddy/contact. Can I use the existing Roster DTD
> for this without having to change the server or the clientlibraries?
>
> Ideally, I'd like to insert some tags like <credibility> inside the roster
> item to get something like...
>
> <item jid='gkumar at vyakarna.csa.iisc.ernet.in' name='gkumar'
> subscription='both'>
> <group>Unfiled</group>
> <Credibility Topic='Science'>0.7</Credibility>
> <Credibility Topic='Philosophy'>0.4</Credibility>
> </item>
>
> Is it possible to do this without modification to the server? Itd be best
> if I wont have to modify the client side interfaces as well.
>
> Thanks in advance,
> Bharath
>
> _______________________________________________
> jdev mailing list
> jdev at jabber.org
> http://mailman.jabber.org/listinfo/jdev
>




More information about the JDev mailing list