
Copyright © 2001, 2015, Oracle and/or its affiliates. All rights reserved.
4. Advanced Configuration: Custom Properties
Much of the configuration and customization of Oracle Transportation Management involves managing
properties used by the application. These properties are initially distributed in a set of hierarchical
property files, where one property file can include another. This allows reuse of common properties on
both web servers and application servers and the overriding of these staged properties for a particular
installation.
Property Types
To understand property precedence, it's important to consider two basic types of properties in Oracle
Transportation Management:
Single-valued. This is a property that has a single value for a given key.
Multi-valued. This is a property that supports multiple values for a given key.
While most configurable properties are single-valued, a list of multi-valued properties can be found in
glog.readonly.properties under glog.properties.multiple entries. The
glog.workflow.topicGroup property, for example, is multi-valued: each value declares the number
of threads to allocate to a workflow topic queue.
Single-Valued Properties
Assume a single-valued property is defined in more than one property file and on more than one line
in a given property file. The declaration in the top-most property file takes precedence over
declarations in included files. The declaration lower in a property file takes precedence over one
defined above it. As an example, assume we have the following property files:
a.property=value1
!include standard.properties
a.property=value3
a.property=value2
glog.properties standard.properties
The value of a.property is set to value3 since the values in glog.properties take precedent over
those in standard.properties and the line with value3 is below the line with value1. Only if both
declarations in glog.properties were removed would the value of a.property be set to value2.
Multi-Valued Properties
Multi-valued properties work in a more additive way. Assume that a.property was declared to be
multi-valued. Then the values in both glog.properties and standard.properties are used. The
values for a.property will be value1, value2 and value3. If you needed to override (i.e. remove)
value2, use the !remove directive. This directive can be used to remove all values declared to date
or to remove a specific value. In the above example, we can remove value2 as follows:
a.property=value1
!include standard.properties
!remove a.property=value2
a.property=value3
a.property=value2
glog.properties standard.properties
Comentarios a estos manuales