[JDEV] XDB Component in Java

Matt Diez matt at vedalabs.com
Fri Jan 5 13:56:35 CST 2001


Well, the packets that should be being sent are just standard XDB requests;
the typical auth and registration requests. 

What makes no sense is that when I set this up as a base_connect, it works
just fine, and receives all XDB packets sent. But when set as a base_accept,
it receives absolutely nothing... 

Anyway, this is what the XDB packets look like (well, they look like
standard
xdb packets - I don't see why they'd be different).

elavil is the hostname of the jabber box.

<xdb to="user at elavil/jabber:iq:auth" from="elavil" id="1" type="get"></xdb>

<xdb to="user at elavil/jabber:iq:auth" from="elavil" id="2" type="get"></xdb>

<xdb to="user at elavil/jabber:iq:auth" from="elavil" id="3" type="get"></xdb>

<xdb to="user at elavil/jabber:iq:auth" from="elavil" id="4"
type="set"><password>somepassword</password></xdb>

<xdb to="user at elavil/jabber:iq:auth" from="elavil" id="5" type="get"></xdb>

<xdb to="user at elavil/jabber:iq:auth:0k" from="elavil" id="6" type="set">
<zerok><hash>b59903775f0bc168ada4bab7941f4e77134274a4</hash><token>3A5626E7<
/token><sequence>500</sequence></zerok></xdb>

<xdb to="user at elavil/jabber:iq:auth" from="elavil" id="7"
type="set"><password>somepassword</password></xdb>

<xdb to="user at elavil/jabber:iq:register" from="elavil" id="8"
type="set"><query
xmlns="jabber:iq:register"><x>registered</x><resource>Winjab</resource></que
ry></xdb>

<xdb to="user at elavil/jabber:iq:auth" from="elavil" id="9" type="get"></xdb>

<xdb to="user at elavil/jabber:iq:auth" from="elavil" id="10" type="get"></xdb>

These are just standard, run of the mill XDB requests...



-----Original Message-----
From: David Barth [mailto:dbarth at idealx.com]
Sent: Friday, January 05, 2001 4:10 AM
To: jdev at jabber.org
Subject: Re: [JDEV] XDB Component in Java


> Matt Diez a écrit :
[...]
>   <xdb id="xdb">
>     <host>xdb.192.168.0.22</host>
>     <accept>
>        <ip/>
>        <port>5265</port>
>        <secret>test</secret>
>     </accept>
>   </xdb>
> 
> The xdb component successfully connects, and handshakes, but NEVER
> receives any packets...

Can you show some example packets in the main jabberd instance ?
 
> Can anyone suggest what I may doing incorrectly here, or tell me some
> sort of workaround that
> doesn't involve base_connect?
> 
> Alternatively, could someone explain the significance of the <host>
> element?

The <host> tag is supposed to act as a filter. So you won't receive
packets unless their addressed to='xdb.192.168.0.22/jabber:iq:whatever'.

--
dbarth

_______________________________________________
jdev mailing list
jdev at jabber.org
http://mailman.jabber.org/listinfo/jdev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.jabber.org/jdev/attachments/20010105/46b2c905/attachment-0002.htm>


More information about the JDev mailing list