Component Instance: jud

As mentioned already, the JUD is a user directory service that provides storage and query facilities for the user’s name and address data. The jud component instance described by the configuration XML in Example 4-18 is shown in diagram form in Figure 4-14.

Diagram view of jud component instance
Figure 4-14. Diagram view of jud component instance

The JUD that is defined here relies upon the xdb component for data storage and retrieval services, which in turn means that, in this case, the data is stored in XML format in a file under the directory defined in the <spool/> tag in the xdb component instance’s definition. All the data managed by the JUD is stored in one lump, with no specific JID associated with it; this means that xdb’s engine, xdb_file, will store it as a single file called global.xml under the directory named after the JUD hostname jud.

Example 4-18. jabber.xml configuration for the jud component instance

<service id="jud">

  <host>jud.yak</host>

  <load>
    <jud>./jud-0.4/jud.so</jud>
  </load>

  <jud xmlns="jabber:config:jud">
    <vCard>
      <FN>JUD on yak</FN>
      <DESC>yak User Directory Services</DESC>
      <URL>http://yak/</URL>
    </vCard>
  </jud>

</service>

Get Programming Jabber now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.