Bootstrap.properties

The Bootstrap.properties file mainly contains the minimum set of properties necessary for obtaining a connection to the database. These properties will generally have no effect if set in the Application.prx file and are only picked up directly from the Bootstrap.properties file.

The Bootstrap.properties file may also contain properties that can be defined in Application.prx file. If such a property is defined in the Bootstrap.properties file and is a dynamic property, it can be overridden by setting it on database using the administration interface.

Note: Properties defined in the following are cached: Application.prx, Bootstrap.properties and Java System properties at runtime. Properties defined in Application.prx are loaded into the database and can be updated at runtime using the administration interface. A publish is required to rebuild the property cache and allow the changes to take effect.

The property cache loads its contents with the following priority:

  1. Java System properties,
  2. Application.prx,
  3. Bootstrap.properties;

For example, if a property is set in the Java System properties (either via the Application Server or using java.lang.System.setProperty()) and also in Application.prx curam.util.resources.Configuration.getProperty(), the value of the property defined in the Java System properties will always be returned when using the Application.prx and Bootstrap.properties, the value of the property in Application.prx is what will take effect.

Figure 1. Bootstrap.properties
# Tnameserv Port
curam.environment.tnameserv.port=900
curam.environment.bindings.location=C:/Bindings

curam.db.username=db2admin
curam.db.password=wWw5UTMnFOe1SeCBEQy/Zg==
curam.db.type=DB2
curam.db.name=CURAM
curam.db.serverport=50000
curam.db.servername=localhost

# property to specify Oracle service name.
curam.db.oracle.servicename=orcl.<host_name>

# Properties specific to H2
# Mode remote|embedded
curam.db.h2.mode=embedded
# For remote mode also specify:
curam.db.serverport=9092
curam.db.servername=localhost
# Lock Time Out in ms. Default is 1000, i.e. 1 second. (Optional)
curam.db.h2.locktimeout=20000
# Property to disable MVCC. Default: true. (Optional)
curam.db.h2.mvcc=true

An automatically generated version of Bootstrap.properties is packed in the Enterprise Archive (EAR) when building the EAR file. This file chooses it's properties from the default Bootstrap.properties and is extended with extra properties relating to the Application Server being used.

Figure 2. Bootstrap.properties in an EAR file
curam.db.type=DB2
curam.environment.as.vendor=IBM
Note: The EAR file cannot be built for H2 database.1
1 For more information on H2 database consult the Cúram Third-Party Tools Installation Guide for Windows.