By default this file is named
OJB.properties
and is loaded from the classpath
by a J2EE compliant resource lookup:
 |  |  |
 |
Thread.currentThread().getContextClassLoader().getResource(getFilename());
|  |
 |  |  |
The filename of
the properties file can be changed by setting a Java system property.
This can be done programmatically:
 |  |  |
 |
System.setProperty("OJB.properties","myOwnPropertiesFile.props");
|  |
 |  |  |
or by setting a -D option to the JVM:
 |  |  |
 |
java -DOJB.properties=myOwnPropertiesFile.props my.own.ojb.Application
|  |
 |  |  |
All things that can be configured by OJB.properties are commented
in the file itself.
Have a look at the default version of this file.