Bootstrap configuration items for the Configuration Repository
This topic describes the configuration items that make up the Configuration Repository's bootstrap configuration.
Application configuration client bootstrap configuration
This item defines the URI of the Configuration Repository. This configuration portion is a snippet that resides in two separate configuration properties files. It is found in the bootstrap.properties file of the management agent and also the bootstrap.properties file for the EBA. How you configure these settings depends on which file is being discussed.
If you are configuring the bootstrap for the EBA, you can rely on the fact that it resides in the WebSphere® Application Server OSGi container, enabling you to locate the repository datasource using JNDI. If, on the other hand, you are configuring the bootstrap.properties file for the Agent, which is a normal J2SE application, you need to configure the properties file accordingly.
config:<adapter-scheme>:<adapter-specific-part></adapter-specific-part></adapter-scheme>
Only a relational database configuration repository adapter is currently provided. The scheme name of this adapter is "database". There are three forms of URIs supported for this scheme:
- a JDBC database specific URI
- a JNDI name
- a J2EE container resource reference name
config:database:jdbc:db2:<db-alias>;user=<user-name>;password=<password>
config:database:jdbc:db2://<host>:<port>/<db-name>:user=
<user-name>;password=<password>
repository.uri=config:database:jdbc:oracle:driverType:@<host>:<port>:
<database-name>;user=<user-name>;password=<password>
config:database:<jndi-name>
config:database:java:comp/env/<res-ref-name>
Examples:
repository.uri=config:database:jdbc:db2:CUSTOMER;user=db2admin;password=db2admin
repository.uri=config:database:jdbc:db2://localhost/CUSTOMER:user=db2admin;
password=db2admin
repository.uri=config:database:jdbc:oracle:thin:@localhost:1521:customer;user=
scott;password=tiger
repository.uri=config:database:jdbc/DWLConfig
repository.uri=config:database:java:comp/env/jdbc/DWLConfig
When using a URI that contains a JNDI name, the following JVM properties must be set at the command line to enable the connectivity to the naming service:
java.naming.factory.initial=<initial-context-factory-class>
java.naming.provider.url=<naming-service-url>
Examples:
-Djava.naming.factory.initial=com.ibm.websphere.naming.WsnInitialContextFactory
-Djava.naming.provider.url=iiop://localhost:2809/
Default:
repository.uri=config:database:jdbc/DWLConfig</naming-service-url></initial-context-factory-class>
Configuration repository factory class
This item configures the repository adapter class to use as a repository factory. Each repository adapter must have an entry of the form:
repository.factory.<adapter-scheme></adapter-scheme>
The only repository currently provided is the relational database adapter, whose scheme name is "database".
Examples:
repository.factory.database=com.dwl.management.config.repository.database.RepositoryFactoryImpl
Default:
repository.factory.database=com.dwl.management.config.repository.database.RepositoryFactoryImpl