Custom Configuration
In Section 4.2.2, we described the elements in this order: component type, component identification, host filter, connection method, custom configuration. Being XML, the configuration format is flexible enough to allow us to manage the ordering (but not the nesting!) of the configuration directives to suit our own layout purposes. In this instance, we come to the custom configuration—the connection method comes afterward.
The sessions component (i.e., the JSM) offers a lot of
facilities, which means that in order to attach an instance of the
JSM into our Jabber server we have a lot of configuring to do.
Our configuration wrapper tag for the JSM instance is:
<jsm xmlns="jabber:config:jsm">
The tag name jsm is simply representative of
what the configuration
pertains to; once loaded, the JSM will look for the
configuration by the namespace identifier
jabber:config:jsm.
Within the wrapper tag,
we have different sections that approximately relate to the different
services that the JSM is going to provide.
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