hosts.xml

hosts.xml is a configuration file in an application package. Elements:

hosts
  host [name]
    alias
The purpose of hosts.xml is to add aliases for real hostnames to self-defined aliases. The aliases are used in services.xml to map service instances to hosts. It is only needed when deploying to multiple hosts.

host

Subelements:

Example:

<?xml version="1.0" encoding="utf-8" ?>
<hosts>
  <host name="myserver0.mydomain.com">
    <alias>SEARCH0</alias>
    <alias>CONTAINER0</alias>
  </host>
  <host name="myserver1.mydomain.com">
    <alias>SEARCH1</alias>
    <alias>CONTAINER1</alias>
  </host>
</hosts>

alias

Alias used in services.xml to refer to the host.