Component Connection Method
Phew! Now that we’ve got the configuration out of the way, we can have
a look at how the JSM is loaded. And we can see immediately from the
<load/>
tag that it’s
connected using the library load method:
<load main="jsm"> <jsm>./jsm/jsm.so</jsm> <mod_echo>./jsm/jsm.so</mod_echo> <mod_roster>./jsm/jsm.so</mod_roster> <mod_time>./jsm/jsm.so</mod_time> <mod_vcard>./jsm/jsm.so</mod_vcard> <mod_last>./jsm/jsm.so</mod_last> <mod_version>./jsm/jsm.so</mod_version> <mod_announce>./jsm/jsm.so</mod_announce> <mod_agents>./jsm/jsm.so</mod_agents> <mod_browse>./jsm/jsm.so</mod_browse> <mod_admin>./jsm/jsm.so</mod_admin> <mod_filter>./jsm/jsm.so</mod_filter> <mod_offline>./jsm/jsm.so</mod_offline> <mod_presence>./jsm/jsm.so</mod_presence> <mod_auth_plain>./jsm/jsm.so</mod_auth_plain> <mod_auth_digest>./jsm/jsm.so</mod_auth_digest> <mod_auth_0k>./jsm/jsm.so</mod_auth_0k> <mod_log>./jsm/jsm.so</mod_log> <mod_register>./jsm/jsm.so</mod_register> <mod_xml>./jsm/jsm.so</mod_xml> </load>
It’s clear that the more complex version of the
library load method is employed. The
jsm
module itself is loaded through the
<jsm>...</jsm>
tag pair
and this in turn pulls in the other modules that are specified with
the mod_* module name tag pairs.
We’ve already become aquainted with some of the modules in this list; here’s a quick summary of the modules that will be loaded into the JSM:
- mod_echo
This module provides a simple echo service that echoes back whatever you send it.
- mod_roster ...
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.