<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2652.35">
<TITLE>RE: [JDEV] XDB Component in Java</TITLE>
</HEAD>
<BODY>
<P><FONT SIZE=2>Well, the packets that should be being sent are just standard XDB requests;</FONT>
<BR><FONT SIZE=2>the typical auth and registration requests. </FONT>
</P>
<P><FONT SIZE=2>What makes no sense is that when I set this up as a base_connect, it works</FONT>
<BR><FONT SIZE=2>just fine, and receives all XDB packets sent. But when set as a base_accept,</FONT>
<BR><FONT SIZE=2>it receives absolutely nothing... </FONT>
</P>
<P><FONT SIZE=2>Anyway, this is what the XDB packets look like (well, they look like standard</FONT>
<BR><FONT SIZE=2>xdb packets - I don't see why they'd be different).</FONT>
</P>
<P><FONT SIZE=2>elavil is the hostname of the jabber box.</FONT>
</P>
<P><FONT SIZE=2><xdb to="user@elavil/jabber:iq:auth" from="elavil" id="1" type="get"></xdb></FONT>
</P>
<P><FONT SIZE=2><xdb to="user@elavil/jabber:iq:auth" from="elavil" id="2" type="get"></xdb></FONT>
</P>
<P><FONT SIZE=2><xdb to="user@elavil/jabber:iq:auth" from="elavil" id="3" type="get"></xdb></FONT>
</P>
<P><FONT SIZE=2><xdb to="user@elavil/jabber:iq:auth" from="elavil" id="4" type="set"><password>somepassword</password></xdb></FONT>
</P>
<P><FONT SIZE=2><xdb to="user@elavil/jabber:iq:auth" from="elavil" id="5" type="get"></xdb></FONT>
</P>
<P><FONT SIZE=2><xdb to="user@elavil/jabber:iq:auth:0k" from="elavil" id="6" type="set"></FONT>
<BR><FONT SIZE=2><zerok><hash>b59903775f0bc168ada4bab7941f4e77134274a4</hash><token>3A5626E7</token><sequence>500</sequence></zerok></xdb></FONT></P>
<P><FONT SIZE=2><xdb to="user@elavil/jabber:iq:auth" from="elavil" id="7" type="set"><password>somepassword</password></xdb></FONT>
</P>
<P><FONT SIZE=2><xdb to="user@elavil/jabber:iq:register" from="elavil" id="8" type="set"><query xmlns="jabber:iq:register"><x>registered</x><resource>Winjab</resource></query></xdb></FONT></P>
<P><FONT SIZE=2><xdb to="user@elavil/jabber:iq:auth" from="elavil" id="9" type="get"></xdb></FONT>
</P>
<P><FONT SIZE=2><xdb to="user@elavil/jabber:iq:auth" from="elavil" id="10" type="get"></xdb></FONT>
</P>
<P><FONT SIZE=2>These are just standard, run of the mill XDB requests...</FONT>
</P>
<BR>
<BR>
<P><FONT SIZE=2>-----Original Message-----</FONT>
<BR><FONT SIZE=2>From: David Barth [<A HREF="mailto:dbarth@idealx.com">mailto:dbarth@idealx.com</A>]</FONT>
<BR><FONT SIZE=2>Sent: Friday, January 05, 2001 4:10 AM</FONT>
<BR><FONT SIZE=2>To: jdev@jabber.org</FONT>
<BR><FONT SIZE=2>Subject: Re: [JDEV] XDB Component in Java</FONT>
</P>
<BR>
<P><FONT SIZE=2>> Matt Diez a écrit :</FONT>
<BR><FONT SIZE=2>[...]</FONT>
<BR><FONT SIZE=2>> <xdb id="xdb"></FONT>
<BR><FONT SIZE=2>> <host>xdb.192.168.0.22</host></FONT>
<BR><FONT SIZE=2>> <accept></FONT>
<BR><FONT SIZE=2>> <ip/></FONT>
<BR><FONT SIZE=2>> <port>5265</port></FONT>
<BR><FONT SIZE=2>> <secret>test</secret></FONT>
<BR><FONT SIZE=2>> </accept></FONT>
<BR><FONT SIZE=2>> </xdb></FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> The xdb component successfully connects, and handshakes, but NEVER</FONT>
<BR><FONT SIZE=2>> receives any packets...</FONT>
</P>
<P><FONT SIZE=2>Can you show some example packets in the main jabberd instance ?</FONT>
<BR><FONT SIZE=2> </FONT>
<BR><FONT SIZE=2>> Can anyone suggest what I may doing incorrectly here, or tell me some</FONT>
<BR><FONT SIZE=2>> sort of workaround that</FONT>
<BR><FONT SIZE=2>> doesn't involve base_connect?</FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> Alternatively, could someone explain the significance of the <host></FONT>
<BR><FONT SIZE=2>> element?</FONT>
</P>
<P><FONT SIZE=2>The <host> tag is supposed to act as a filter. So you won't receive</FONT>
<BR><FONT SIZE=2>packets unless their addressed to='xdb.192.168.0.22/jabber:iq:whatever'.</FONT>
</P>
<P><FONT SIZE=2>--</FONT>
<BR><FONT SIZE=2>dbarth</FONT>
</P>
<P><FONT SIZE=2>_______________________________________________</FONT>
<BR><FONT SIZE=2>jdev mailing list</FONT>
<BR><FONT SIZE=2>jdev@jabber.org</FONT>
<BR><FONT SIZE=2><A HREF="http://mailman.jabber.org/listinfo/jdev" TARGET="_blank">http://mailman.jabber.org/listinfo/jdev</A></FONT>
</P>
</BODY>
</HTML>