Dynamically adding a property extension repository

Use this procedure to dynamically add a property extension repository to the current configuration at runtime.

About this task

Note: When this dynamic call is made, only the configuration in memory is updated. The configuration file is not updated.
Event Type
DYNA_CONFIG_EVENT_ADD_PROPERTY_EXTENSION_REPOSITORY
Configuration Data
DYNA_CONFIG_KEY_PROP_EXT_REPOS_CONFIG (required) - [DataObject]
Specifies the configuration data object based on the wimconfig.xsd file. This data object contains the configuration information of property extension repository.
The following is a sample task:

Procedure

Call the dynamicUpdateConfig API to add the property extension repository configuration. For example:
Hashtable configData = new Hashtable();
DataObject laConfig = SDOHelper.createConfigDataObject(null,ConfigConstants.WIM_CONFIG_NS_URI, 
                      ConfigConstants.CONFIG_DO_PROPERTY_EXTENSION_REPOSITORY);
laConfig.setString(ConfigConstants.CONFIG_PROP_DATABASE_TYPE, "db2");
laConfig.setString(ConfigConstants.CONFIG_PROP_DATASOURCE_NAME, "jdbc/wimDS");
laConfig.setString(ConfigConstants.CONFIG_PROP_DB_URL, "jdbc:db2:wim");
laConfig.setString(ConfigConstants.CONFIG_PROP_DB_ADMIN_ID, "db2admin");
laConfig.setString(ConfigConstants.CONFIG_PROP_DB_ADMIN_PASSWORD, 
                   PasswordUtil.getByteArrayPassword("passw0rd"));
laConfig.setString(ConfigConstants.CONFIG_PROP_JDBC_DRIVER_CLASS, "COM.ibm.db2.jdbc.app.DB2Driver");
configData.put(DynamicConfigConstants.DYNA_CONFIG_KEY_PROP_EXT_REPOS_CONFIG, laConfig);
service.dynamicUpdateConfig(DynamicConfigConstants.DYNA_CONFIG_EVENT_ADD_PROPERTY_EXTENSION_REPOSITORY, 
                            configData);

Icon that indicates the type of topic Task topic

Terms and conditions for documentation | Feedback


Timestamp icon Last updated: March 30, 2016 13:35
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=cord&product=vmm&topic=dynaddpropertyextensionrepository
File name: dynaddpropertyextensionrepository.html