Back to Contents | GAS Configuration File Overview
The INTERFACE_TO_DVM element in the Genero Application Server (GAS) configuration file specifies the connection between the GAS and the Dynamic Virtual Machine (DVM). This element specifies the address of the host where the GAS daemon (gasd) runs, the range of valid ports for each launched DVM to connect, and a list of excluded ports on which a DVM cannot connect.
There can only be one INTERFACE_TO_DVM element specified in a given Genero Application Server configuration file.
Syntax:
<INTERFACE_TO_DVM>
<ADDRESS> address </ADDRESS>
<TCP_BASE_PORT> port </TCP_BASE_PORT>
<TCP_PORT_RANGE> range </TCP_PORT_RANGE>
[ <EXCLUDED_PORT> exclPort </EXCLUDED_PORT>
] [...]
</INTERFACE_TO_DVM>
The INTERFACE_TO_DVM element may contain the following child elements (described below):
<INTERFACE_TO_DVM> <ADDRESS>app_server</ADDRESS> <TCP_BASE_PORT>6420</TCP_BASE_PORT> <TCP_PORT_RANGE>10000</TCP_PORT_RANGE> <EXCLUDED_PORT>6667</EXCLUDED_PORT> <EXCLUDED_PORT>7200</EXCLUDED_PORT> <EXCLUDED_PORT>8080</EXCLUDED_PORT> </INTERFACE_TO_DVM>
In this example, valid port numbers on which a DVM can be started to service an application range from 6420 to 16423 (TCP_BASE_PORT + TCP_PORT_RANGE + number of excluded ports), excluding those ports specified in EXCLUDED_PORT elements (ports 6667,7200, and 8080).
The ADDRESS element specifies the name or IP address of the machine where the Genero Application Server daemon (gasd) runs. This address is used by the DVM to set (build) the FGLSERVER environment variable. If the DVMs are running locally, this should be set to localhost.
<ADDRESS>app_server</ADDRESS> <ADDRESS>192.127.45.17</ADDRESS> <ADDRESS>localhost</ADDRESS>
The TCP_BASE_PORT element specifies the port from where the Genero Application Server will start listening to Virtual Machines. In other words, the port specified is the first available port for the GAS daemon (gasd) to open for a DVM.
<TCP_BASE_PORT>6420</TCP_BASE_PORT>
The TCP_BASE_RANGE specifies the range of ports the Genero Application Server can use to bind ports. In other words, this element specifies the range of valid ports for the GAS daemon (gasd) to open for a DVM, starting from the first available port specified by the value set by TCP_BASE_RANGE.
<TCP_BASE_RANGE>10000</TCP_BASE_RANGE>
The EXCLUDED_PORT element specifies an excluded port value - a port that the Genero Application Server will not try to bind when running as a server with the Virtual Machine. Each EXCLUDED_PORT element specifies a single port to exclude; to exclude multiple ports, you must provide multiple EXLUDED_PORT elements.
<EXCLUDED_PORT>7200</EXCLUDED_PORT> <EXCLUDED_PORT>8080</EXCLUDED_PORT>