The configuration of FairCom RTG is controlled by an XML file called ctree.conf by default. Because it is an XML file, it uses the same syntax for both Windows and Unix/Linux.
The FairCom RTG Configuration Tool, RTG Config, is provided to greatly simplify configuration. To get the most out of your FairCom RTG system, it is important to know its layout and to understand the FairCom RTG configuration options available. In this way, your system can be configured to best suit your needs.
Configuration File Format
The XML configuration file uses a tree structure that follows the hierarchy of parent/child relationships described below:
Each <instance> element represents a connection to the FairCom RTG server. When creating a new instance, you will need to supply the server name, user name, password, etc., which are attributes of the element. (If no <instance> element is present in the configuration file, the system will use a default of <instance server="FAIRCOMS">.)
Settings applied within the <config> root element apply to all <instance> elements within the root element.
Structure Elements, Settings Elements, and Attributes
The <config> root element, the <instance> (and <redirinstance>) elements, and the <file> element are called Structure Elements because they define the architectural structure of your particular FairCom RTG system.
Most structure elements have attributes that provide details to describe the element (e.g., a file element uses a name or directory attribute to specify one or more files).
The structure elements may contain Settings Elements. These elements configure the desired settings for their parent structure element. For example, a <file> element may use a <datacompress> settings element to turn data compression on or off for certain files (which are specified by attributes of the <file> element).
Remember: The configuration file is a hierarchy, so settings made at a higher level (closer to the root) can be overridden by settings applied to an individual child element. Settings specified by Option Elements in a child element overwrite the values inherited from higher levels in the hierarchy. The following rules apply:
Setting elements can be specified as children of <config>, <instance>, and <file> but actually apply only to file elements if a setting element is not specified as a child of <file>.
FairCom RTG considers file extensions to be part of the file name. If you want to override the suffix, use the <datafilesuffix> configuration option.
If no file paths are specified, the LOCAL_DIRECTORY setting in ctsrvr.cfg comes into play. This implies that ctree.conf takes precedence over ctsrvr.cfg.
See Also