Skip to Content
Programming Jabber
book

Programming Jabber

by DJ Adams
January 2002
Beginner
480 pages
13h 15m
English
O'Reilly Media, Inc.
Content preview from Programming Jabber

Browsable service information

As the Jabber server administrators, we know what services are available on our Jabber server: what components are connected and what features they offer. We know that we’re running a JUD locally and have a Conferencing component.

But how do we let the Jabber clients know? If they’re to be able to provide their users with an agreeable experience and expose them to all the server features and services available, we need some way to allow them to request information about what the server that they’re connected to offers. Jabber has a powerful feature called browsing that allows one entity to query another entity for information. Browsing defines a simple request/response exchange and with that provides a singular and uniform way to retrieve (on the requester’s part) and expose (on the requestee’s part) feature information and availability.

Bearing that in mind, we can guess what the <browse/> section of the JSM custom configuration is for:

<browse>
  <service type="jud" jid="jud.yak" name="yak User Directory">
    <ns>jabber:iq:search</ns>
    <ns>jabber:iq:register</ns>
  </service>
  <conference type="public" jid="conference.yak" name="yak Conferencing"/>
</browse>

Each child of the <browse/> tag defines a feature, in this case a “service,” that the Jabber server offers. Of course, these services are the ones over and above the services provided by the basic components such as Session Management, Hostname Resolution, and so on.

Two services are defined (“exposed”) ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Professional XMPP Programming with JavaScript® and jQuery

Professional XMPP Programming with JavaScript® and jQuery

Jack Moffitt
Hacking Web Performance

Hacking Web Performance

Maximiliano Firtman

Publisher Resources

ISBN: 0596002025Errata Page