[JDEV] xdb_sql + mod_groups

Jan Peter Hecking jhecking at netgaroo.com
Sat Dec 22 08:34:34 CST 2001


Hi,

does anyone here use xdb_sql together with mod_groups?

Right now I've setup jabberd 1.4.1 with both xdb_file and xdb_sql.
xdb_sql handles all namespaces except for jabber:xdb:groups and
jabber:xdb:groups:info. I'm running jabberd in debug mode 
and am looking for all xdb request handled by xdb_file while performing
some mod_groups related operations like creating new groups, registering
a user to a group etc.

The xdb-get requests seem to be straight forward but I'm not sure I
understand the logic behind xdb-set requests like the following

    <xdb type='set' action='insert' match='?jid=iqgc at jabber.localhost'
        to='jabber.localhost/users' from='sessions' ns='jabber:xdb:groups'
        id='42'>
            <user jid='iqgc at jabber.localhost' name='iqgc'/>
    </xdb>

which is answered with

    <xdb type='result' action='insert'
        match='?jid=iqgc at jabber.localhost' to='sessions'
        from='jabber.localhost/users' ns='jabber:xdb:groups' id='42'>
            <user jid='iqgc at jabber.localhost' name='iqgc'/>
    </xdb>

Are the action and match attributes something mod_groups specific or is
that a typical xdb request? How can I translate those requests into
xdb_sql querydefs? Can I use the new dtd="2" way or do I need to write C
code to handle those requests?

Thank you,
Jan

-- 
Jan Peter Hecking                     jhecking at netgaroo.com
University of Rostock        Department of Computer Science
Web: http://jhecking.netgaroo.com, http://news.netgaroo.com



More information about the JDev mailing list