![]() |
![]() |
MateComponent Activation API Reference Manual | ![]() |
---|
To know the list of available CORBA servers on your
local machine, the MateComponent Activation daemon searches a number of
directories for .server
XML
files which contain the description of the services offered by these
servers.
By default, MateComponent Activation will try to find them in
${prefix}/lib/matecomponent/servers
which may be a problem
if users install other applications using MateComponent Activation in different
prefixes.
To work around this problem, MateComponent Activation will parse a number of
other directories.
It will parse the directories listed in the
MATECOMPONENT_ACTIVATION_PATH
environment variable.
It will parse the prefixes listed in the MATE2_PATH
environment variable.
If, for example,
MATECOMPONENT_ACTIVATION_PATH=/opt/mate2/lib/matecomponent/servers:/opt/mate2/matecomponent-activation/lib/matecomponent/servers,
MateComponent Activation will parse
/opt/mate2/lib/matecomponent/servers and
/opt/mate2/matecomponent-activation/lib/matecomponent/servers
If MATE2_PATH=/opt/mate2:/opt/mate2/matecomponent-activation,
MateComponent Activation will parse
/opt/mate2/lib/matecomponent/servers and
/opt/mate2/matecomponent-activation/lib/matecomponent/servers.
The above environment variables are kept to ease development with
MateComponent Activation and for MATE integration.
MateComponent Activation has a much nicer configuration file which allows
you to control which directories are parsed by MateComponent Activation.
This XML configuration file is located in
/etc/matecomponent-activation/matecomponent-activation-config.xml
or
${prefix}/etc/matecomponent-activation/matecomponent-activation-config.xml
.
An empty matecomponent-activation-config.xml
and a sample
matecomponent-activation-config.xml.sample
file should be
installed on your system.
It is recommended to use the matecomponent-activation-sysconf command-line configuration tool to edit this file. However, here is an example of its format.
<?xml version="1.0"?> <oafconfig> <searchpath> <item>/opt/mate2/lib/matecomponent/servers</item> <item>/usr/local/mate2/lib/matecomponent/servers</item> <item>/usr/local/lib/matecomponent/servers</item> <item>/opt/mate2/matecomponent-activation/lib/matecomponent/servers</item> </searchpath> <searchpath> <item>/opt/mate2/matecomponent-activation/lib/matecomponent/servers</item> </searchpath> </oafconfig>
There can be any number of item
tags in a
searchpath
tag and any number of
searchpath
tags in the oafconfig
tag.