Dashboard > RIFE > ... > Config > Flexible inclusion
RIFE Log In | Sign Up   View a printable version of the current page.
Flexible inclusion


Added by Geert Bevin, last edited by Geert Bevin on May 20, 2004  (view change)
Labels: 
(None)

Configuration XML files are capable of including others with the include tag, this basically imports all the parameters and lists from the included configuration file in the including file. Also, all the parameters and lists in the including file will be available as the base for the included file. This allows you to for example use a common configuration for database table names with prefixes in the included file and provide a different prefix in each including file.

For example:

config-host1.xml

<config>
  <param name="PREFIX">TST</param>
  <include file="rep/config-common.xml"/>
</config>

config-host2.xml

<config>
  <param name="PREFIX">V10</param>
  <include file="rep/config-common.xml"/>
</config>

config-common.xml

<config>
  <param name="TABLE_AGENT"><value name="PREFIX"/>AGENT</param>
  <param name="TABLE_OFFERS"><value name="PREFIX"/>OFFERS</param>
</config>

Will result in the following configuration settings:

for host1:

TABLE_AGENT  = TSTAGENT
TABLE_OFFERS = TSTOFFERS

for host2:

TABLE_AGENT  = V10AGENT
TABLE_OFFERS = V10OFFERS



Are you enjoying Confluence? Please consider purchasing it today.
Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.2.1a Build:#515 May 19, 2006) - Bug/feature request - Contact Administrators