[jdev] Getting individual roster items
Jack Moffitt
jack at chesspark.com
Sun Nov 23 00:06:34 CST 2008
> One of my bot's roster is getting a bit large, so the roster request
> is quite a chunk. I already persist the roster, so i'd rather just
> query indivdual roster items on demand to query the subscription
> state. Is there a modification to the roster IQ to ask for a single
> jid? Can't find anything like that in the spec.
There is a XEP for this, XEP 237 - Data Sequencing. It's use with
rosters is documented here:
http://xmpp.org/extensions/xep-0237.html#roster
Unfortunately this XEP is experimental and is likely unsupported by servers.
The common solution to this problem is to reimplement your bot as a
component, and then it can manage its own roster without help from the
server.
See my post on scalable bots here for more information:
http://metajack.im/2008/08/04/thoughts-on-scalable-xmpp-bots/
jack.
More information about the JDev
mailing list