<!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] Interesting "service" vs "xdb" vs "agent" thing</TITLE>
</HEAD>
<BODY>
<P><FONT SIZE=2>Depends on how attached you are to XDB packets, and</FONT>
<BR><FONT SIZE=2>if you can build your handler to accept other</FONT>
<BR><FONT SIZE=2>types of packets. Put simply, the way a </FONT>
<BR><FONT SIZE=2>base_accept service functions is the exact same</FONT>
<BR><FONT SIZE=2>way that a base_accept xdb functions. Meaning, </FONT>
<BR><FONT SIZE=2>set it up as a service (just change your xdb tags to</FONT>
<BR><FONT SIZE=2>service), and direct your user directory requests to it. </FONT>
</P>
<P><FONT SIZE=2>Basically, build a second handler to handle iq's or</FONT>
<BR><FONT SIZE=2>whatever type of request and have it talk</FONT>
<BR><FONT SIZE=2>to the db... You're not bound to using XDB packets</FONT>
<BR><FONT SIZE=2>for messages that simply QUERY a database, so set</FONT>
<BR><FONT SIZE=2>up a similar handler that will accept <iq> requests.</FONT>
</P>
<P><FONT SIZE=2>Matthew D. Diez</FONT>
</P>
<P><FONT SIZE=2>-----Original Message-----</FONT>
<BR><FONT SIZE=2>From: Dennis Noordsij [<A HREF="mailto:dennis.noordsij@wiral.com">mailto:dennis.noordsij@wiral.com</A>]</FONT>
<BR><FONT SIZE=2>Sent: Tuesday, January 09, 2001 2:48 PM</FONT>
<BR><FONT SIZE=2>To: jdev@jabber.org</FONT>
<BR><FONT SIZE=2>Subject: [JDEV] Interesting "service" vs "xdb" vs "agent" thing</FONT>
</P>
<BR>
<P><FONT SIZE=2>Hi,</FONT>
</P>
<P><FONT SIZE=2>Suppose I have an external xdb handler connected to a database.</FONT>
</P>
<P><FONT SIZE=2>This handler is already pooling connections to the database, and could easily </FONT>
<BR><FONT SIZE=2>also be a searchable user directory.</FONT>
</P>
<P><FONT SIZE=2>However, it is defined in jabber.xml as xdb, not a service. Therefore, if I </FONT>
<BR><FONT SIZE=2>make it an agent entry for it jabber doesn't know what to do with it. I.e., a </FONT>
<BR><FONT SIZE=2>search request does not get sent to the handler.</FONT>
</P>
<P><FONT SIZE=2>Any ideas on how to do this?</FONT>
</P>
<BR>
<P><FONT SIZE=2>(Handler is connected via base_accept, tcp/ip socket. It handles all xdb and </FONT>
<BR><FONT SIZE=2>vCard related stuff, and could also very easily handle searches, if I can </FONT>
<BR><FONT SIZE=2>find a way to tell jabber about it).</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>