[JDEV] jabber:iq:private namespace

Peter Saint-Andre stpeter at jabber.org
Thu May 24 13:28:47 CDT 2001


Matt Diez wrote:

 > What Jabber component receives requests to the jabber:iq:private 
namespace,
 > and, when, if ever, does it hand the contents of the InfoQuery to XDB.
 >
 > Is this implemented in the current version of the Jabber server?


Yep, this works. Here's an example. I just send the following XML while 
logged into my desktop server (1.4) here:

   <iq type="set" id="1001">
     <query xmlns="jabber:iq:private">
       <stpeter xmlns="favorites">
         <food>Thai</food>
       </stpeter>
     </query>
   </iq>

Now when I look in my user.xml file, I see the following:

   <stpeter xmlns='favorites' j_private_flag='1' xdbns='favorites'>
     <food>Thai</food>
   </stpeter>

I also see the following, which is a list of my private namespaces:

   <foo xdbns='jabber:xdb:nslist' xmlns='jabber:xdb:nslist'>
     <ns type='private'>favorites</ns>
   </foo>

I'd assume that JSM receives these requests and hands it off to XDB. If 
you have multiple XDBs, I'd assume that the one with an empty <ns/> tag 
in your jabber.xml will handle the iq packets with the jabber:iq:private 
namespace.

Peter

-- 
Peter Saint-Andre
stpeter at jabber.org




More information about the JDev mailing list