Sun GlassFish Web Space Server 10.0 Administration Guide

Properties Override

Properties Override is a property in the portal.properties file, which is the default configuration file for Sun GlassFish Web Space Server. You can override this property using portal-ext.properties file.

This property specifies where to get the overridden properties. By default, it is portal-ext.properties. Updates should not be made on the original file (portal.properties) but on the overridden version of this file. Furthermore, each portal instance can have its own overridden property file following the convention portal-companyid.properties.

For example, one read order may be: portal.properties, then portal-ext.properties, and then portal-test.properties.

Examples:

include-and-override=portal-ext.properties

include-and-override=portal-${easyconf:companyId}.properties

include-and-override=portal-test.properties

You can add additional property files that overwrite the default values by using the external-properties system property.

A common example is to keep legacy property values when upgrading to newer versions of Web Space Server.


java ... -Dexternal-properties=portal-legacy-4.4.properties
include-and-override=${external-properties}