Wednesday, November 19, 2008

Properties File Based Configuration for WebSphere

WebSphere configuration is composed of many configuration files mainly in XML format and some in other formats. These configuration files are spread across many directories in WebSphere configuration tree. Contents of these configuration files is mostly complex configuration objects. And there are different tools (wsadmin, console and java APIs ) available to query and modify these configuration objects. Each of these tools contains different tasks to modify different parts of configuration. For example, wsadmin contains AdminConfig, AdminTask, AdminApp and AdminControl tasks to query and modify different configuration objects within WebSphere configuration. In WebSphere version 7.0, a simple properties file based configuration is introduced. Simple properties file based confguration tool is a single generic tool to query and modify all configuration objects within WebSphere configuration. Thus end user needs to know just one set of commands to configure WebSphere application server. This utility allows examination of the configuration by extracting the configuration into a human readable properties file. This utility also allows user to modify the extracted properties file and apply the changes to the configuration.

The following commands are provided to perform properties file based configuration:

1. extractConfigProperties : To extract configuration of entire cell or a specified configuration object's properties to a file.
2. applyConfigProperties : To apply properties specified in the properties file to the system.
3. validateConfigProperties : To validate a properties file before applying the properties file to the System.
4. deleteConfigProperties : To delete properties specified in the properties file from the system.
5. createPropertiesFileTemplates: To create template properties files to use to create or delete specific object types.

For more information can be found here: