Centralized Properties Customization
Support is now added for a centralized properties customization file using which properties present in various configuration files can be customized. Instead of customizing individual properties files, a single file can be used to specify all the properties that are to be customized (add, modify or remove).
Once specified in this custom central property file, the properties are automatically migrated to specified properties files. All the configuration properties should be specified in the custom centralized properties file "etc/cm_properties.ini" (this can be created as a customization). If the file exists the content will be processed for the relevant properties.
Each entry in the centralized properties customization file should be specified in the following format:
<PROPERTIES_FILE>:<PROPERTY_NAME>=<VALUE>
Parameter
Usage
PROPERTIES_FILE
The property file in which the property needs to be added/updated/removed.
PROPERTY_NAME
The name of the property.
VALUE
The value to be added/updated against the property in the specified property file.
For each property entry (<PROPERTIES_FILE>:<PROPERTY_NAME>=<VALUE>) specified in the centralized properties customization file, the property (PROPERTY_NAME=VALUE) is added in the specified properties file (PROPERTIES_FILE), if doesnt exist in the specified property file.
If the property (PROPERTY_NAME=VALUE) already exists in the specified properties file (PROPERTIES_FILE), then the entry is updated with the specified value (VALUE).
If user doesn’t specify the properties file name in the entry i.e., the entry in the centralized properties customization file is "<PROPERTY_NAME>=<VALUE>", then the <PROPERTY_NAME> in all property files is overridden with <VALUE>, if <PROPERTY_NAME> exists.
In order to remove an existing property from a specific properties file, the centralized properties file will need to have the entry specified as "<PROPERTIES_FILE>:<PROPERTY_NAME>=[DELETE]"
In order to remove an existing property from a all the properties file, the centralized properties file will need to have the entry specified as "<PROPERTY_NAME>=[DELETE]"
Sample entry in the centralized properties customization file:
hibernate.service.properties.template:hibernate.user=clouduser
This sets the hibernate.user property to clouduser in the hibernate.service.properties file.
Note: This feature is implemented if the initialSetup utility is executed with the minimum of –t option. See initialSetup – Maintain Configuration Settings for details.