When Web Services is installed it will connect to only one DE server or High Availability (HA) instance. If this address or hostname needs to be changed then the
config.properties will be edited. The
config.properties has the Primary and Secondary (for HA) address information.
Gather the exact address and ports of the DE server(s). Follow these step to update the configuration.
- Navigate to the WebServices install directory.
- Shutdown Web Services, using the StopDEWebServices.sh / StopDEWebServices.bat
- Change directory to MET-INF inside the install directory.
In Linux
<WAWebServices_install_directory>/apache-tomcat/webapps/axis2/WEB-INF/services/EspDSeriesService/META-INF
In Windows
<drive>:\<WAWebServices_install_directory>\apache-tomcat\webapps\axis2\WEB-INF\services\EspDSeriesService\META-INF\
- Open the config.properties file using Notepad or vi, (do not use Word or WordPad). It is highly recommended to backup the file before making any changes to it.
- Change Primary address to the new address.
# IP or host name of primary server.
primary.address=de.example.com
# RMI registry port of primary server.
primary.rmi.registry.port=7599
# IP or host name of standby server.
# Use the value for primary if high availability hasn't been configured.
secondary.address=StandbyServer
# RMI registry port of standby server.
# Use the value for primary if high availability hasn't been configured.
secondary.rmi.registry.port=7599
- If HA has been setup, then change Secondary as needed.
- Save the file and start web services.