As part of the server-instance-type and server-instance elements, you can specify properties files to create and configure. If you configure properties files in the server-instance-type element, every server instance of that type uses the same properties file. If the property file is in the server-instance element, each instance can have unique configuration.

Property files are specified in the config-directory element of a particular server instance or instance type, as shown in this example:

<product id="blueprint" extends="commerce">
...
  <server-instance id="basic_management" type="management">
...
    <config-directory>
     <!--Property file declarations here -->

The server-instance-type element supports an additional optional-config-directory element. This element cannot be used in a server-instance element. It appears as a separate option in the server instance configuration user interface. For example:

<server-instance-type id="id">
    <title>Title</title>
    <config-directory>
         <property-file>
         …
         </property-file>
    </config-directory>
    <optional-config-directory id="some-option">
         <title>Configure these optional properties</title>
         <detail></detail>
         <property-file>
         …
         </property-file>
    </optional-config-directory>
</server-instance-type>

A property file is defined by a file name and a list of properties. The file name is relative to the path <ATG9dir>/home/servers/server_name/localconfig, and should start with a slash, as shown in the value element of this example::

<property-file file="atg/dynamo/service/jdbc/JTDataSource.properties">
  <property-group id="base">
    <property name="dataSource">
      <value>/atg/dynamo/service/jdbc/DirectJTDataSource</value>
    </property>
  </property-group>
</property-file>

You can specify multiple property files. You can also group properties as shown, so that the current product selection acts to filter subsets of the total property list:

<property-file file="atg/SomeFile.properties">
  <property-group id="search-reporting">
  <!--This group only applies when search and reporting are selected-->
    <requires-addon-id id="search"/>
    <requires-addon-id id="reporting"/>
    <property name="someProperty">
      <value>propertyValue</value>
    </property >
  </property-group>
</property-file>

In order for a property group to be included in a server instance, all of the requires-addon-id identifiers listed in the property group must be included in the current product selection. If no add-ons are listed, the property group applies to all product selections. A property-file element can include multiple property-group elements, but each property-group must have a unique ID.

 
loading table of contents...