2.2. Runtime Configuration
Prev | Chapter 2. Configuration | Next

## 2.2. Runtime Configuration

In JDO, `PersistenceManagerFactory`s are usually obtained through the `JDOHelper.getPersistenceManagerFactory(Properties)` method. Kodo JDO's runtime settings can be entirely specified via the properties passed to this method. Kodo JDO also includes a comprehensive system of property defaults and overrides:

- All properties default to the values specified in an optional `kodo.properties` resource that can be placed in any top-level directory of the `CLASSPATH`.

- You can customize the name or location of the above resource by specifying the correct resource path in the `kodo.properties` System property.

- You can override any default value defined in the `kodo.properties` resource by setting the System property of the same name to the desired value.

- The values in the `Properties` object passed to `JDOHelper.getPersistenceManagerFactory` at runtime override the default values in the `kodo.properties` resource and any System property settings.

- All Kodo JDO command-line tools accept flags that allow you to specify the properties file to use and to override certain properties. Section 2.3, “Command Line Configuration” describes these flags.

| Note
Internally, the Kodo JDO runtime environment and development tools manipulate property settings through SolarMetric's general `Configuration` interface, and in particular its `JDOConfiguration` and `JDBCConfiguration` subclasses. For advanced customization, Kodo JDO's `PersistenceManagerFactory` implementation and its development tools allow you to access these interfaces directly. See the Javadoc for details.

Prev | Up | Next
Chapter 2. Configuration | Home | 2.3. Command Line Configuration