<CONFIGURATION>
<CONNECTOR>
<INTERFACE_TO_APPLICATION_SERVER>
...
</INTERFACE_TO_APPLICATION_SERVER>
<REQUEST_LIST>
...
</REQUEST_LIST>
<ERROR_LIST>
...
</ERROR_LIST>
</CONNECTOR>
</CONFIGURATION>
Within the INTERFACE_TO_APPLICATION SERVER element, you specify the base port for the Genero Application Server Connector. The base port specifies which port will be used in conjunction of the offset specified in each server.
<CONFIGURATION>
<CONNECTOR>
<INTERFACE_TO_APPLICATION_SERVER>
<TCP_BASE_PORT> port </TCP_BASE_PORT>
</INTERFACE_TO_APPLICATION_SERVER>
request_list section
error_list section
</CONNECTOR>
</CONFIGURATION>
Back to the top01
<INTERFACE_TO_APPLICATION_SERVER>02
<TCP_BASE_PORT>6300</TCP_BASE_PORT>03
</INTERFACE_TO_APPLICATION_SERVER>
The REQUEST_LIST element lists all the requests to be forwarded to the Application Server. A request can be made for a Web Service or a Web Application. This section defines the ports where application servers are listening for requests. At least one default server must be specified, although multiple default servers can be listed to provide load balancing for performance. Application-specific application servers can also be specified.
<CONFIGURATION>
<CONNECTOR>
interface_to_application_server section
<REQUEST_LIST>
<DEFAULT>
<SERVER> defserver:offset
</SERVER> [ ... ]
</DEFAULT>
rqServer [...]
</REQUEST_LIST>
error_list section
</CONNECTOR>
</CONFIGURATION>
where rqServer is:
<REQUEST Id="appName">
<SERVER>appServer:offset</SERVER> [...]
</REQUEST>
01
<REQUEST_LIST>02
<DEFAULT>03
<SERVER>localhost:94</SERVER>04
<SERVER>localhost:95</SERVER>05
</DEFAULT>06
<REQUEST Id="Edit">07
<SERVER>localhost:96</SERVER>08
</REQUEST>09
</REQUEST_LIST>
In this example, if the called application is "Edit", the request is redirected to the application server launched on port 6396 (base port + offset), otherwise the request is sent to one of the default servers listening on ports 6394 and 6395.
01
<REQUEST_LIST>02
<DEFAULT>03
<SERVER>myserver.mydomain.com:94</SERVER>04
</DEFAULT>05
</REQUEST_LIST>
In this example, the fully-qualified domain name is used to define the server. You must use a fully-qualified domain name when using Kerberos authentication.
Back to the topThe ERROR_LIST element specifies what information is displayed when specific errors occur.
<CONFIGURATION>
<CONNECTOR>
interface_to_application_server section
request_list section
<ERROR_LIST>
<ERROR Id="errID">
<HTTP_STATUS> status </HTTP_STATUS>
<HTTP_HEADER Id=" header">
headerValue </HTTP_HEADER>
<BODY_FILE> filename </BODY_FILE>
</ERROR>
[ ... ]
</ERROR_LIST>
</CONNECTOR>
</CONFIGURATION>
<ERROR_LIST>
error [...]
</ERROR_LIST>
where error is:
<ERROR Id="code">
<HTTP_STATUS> status </HTTP_STATUS>
<HTTP_HEADER Id="header"> value </HTTP_HEADER>
<BODY_FILE> filename </BODY_FILE>
</ERROR>
Error Code | Description |
1 | Application ID not specified. |
2 | Unable to find the configuration. |
3 | Application not found. |
4 | Cannot connect to the Application Server. |
5 | Cannot connect to the Application Server any longer. |
6 | Connection lost between the Connector and the Application Server. |
400 Bad Request
HTTP status to return when the error occurs.
Pragma
no-cache
When set to no cache, it directs the browser to not keep the file in the cache.
The
headers are put before the error message, like cache control, redirection,
and so on.
01
<ERROR_LIST>02
<ERROR Id="1">03
<HTTP_STATUS>400 Bad Request</HTTP_STATUS>04
<HTTP_HEADER Id="Pragma">no-cache</HTTP_HEADER>05
<BODY_FILE>connector-error-1</BODY_FILE>06
</ERROR>07
<ERROR Id="2">08
<HTTP_STATUS>500 Internal Server Error</HTTP_STATUS>09
<HTTP_HEADER Id="Pragma">no-cache</HTTP_HEADER>10
<BODY_FILE>connector-error-2</BODY_FILE>11
</ERROR>12
<ERROR Id="3">13
<HTTP_STATUS>404 Not Found</HTTP_STATUS>14
<HTTP_HEADER Id="Pragma">no-cache</HTTP_HEADER>15
<BODY_FILE>connector-error-3</BODY_FILE>16
</ERROR>17
<ERROR Id="4">18
<HTTP_STATUS>503 Service Unavailable</HTTP_STATUS>19
<HTTP_HEADER Id="Pragma">no-cache</HTTP_HEADER>20
<BODY_FILE>connector-error-4</BODY_FILE>21
</ERROR>22
<ERROR Id="5">23
<HTTP_STATUS>503 Service Unavailable</HTTP_STATUS>24
<HTTP_HEADER Id="Pragma">no-cache</HTTP_HEADER>25
<BODY_FILE>connector-error-5</BODY_FILE>26
</ERROR>27
<ERROR Id="6">28
<HTTP_STATUS>502 Bad Gateway</HTTP_STATUS>29
<HTTP_HEADER Id="Pragma">no-cache</HTTP_HEADER>30
<BODY_FILE>connector-error-6</BODY_FILE>31
</ERROR>32
</ERROR_LIST>
This example is taken from the default settings in the GAS Connector configuration file.