Change the location of temporary configuration files
Overview
The configuration repository uses copies of configuration files and temporary files while processing repository requests. It also uses a backup directory while managing the configuration. We can change the default locations of these files from the configuration directory to a directory of your choice using system variables or the administrative console.The default location for the configuration temporary directory is CONFIG_ROOT/temp. Change the location by doing either of the following:
- Set the system variable was.repository.temp to the location you want for the repository temporary directory. Set the system variable when launching a Java process using the -D option. For example, to set the default location of the repository temporary directory, use the following option:
-Dwas.repository.temp=%CONFIG_ROOT%/temp- Use the administrative console to change the location of the temporary repository file location for each server configuration. For example, on the Network Deployment product, to change the setting for a deployment manager, do the following:
- Click System Administration > Deployment Manager in the navigation tree of the administrative console. Then, click Administration Services, Repository Service, and Custom Properties.
- On the Properties page, click New.
- On the settings page for a property, define a property for the temporary file location. The key for this property is was.repository.temp. The value can include WAS variables such as ${WAS_TEMP_DIR}/config. Then, click OK.
The system property set using the first option takes precedence over the configuration property set using the second option.
Related Tasks
Working with server configuration files