SERVICE_APPLICATION_TIMEOUT_COMPONENT

The SERVICE_APPLICATION_TIMEOUT_COMPONENT element creates a set of timeout values to be used when configuring a web service.

Syntax

<SERVICE_APPLICATION_TIMEOUT_COMPONENT Id=component-id>
   [<DVM_AVAILABLE>...</DVM_AVAILABLE>]
   [<KEEP_ALIVE>...</KEEP_ALIVE>]
   [<REQUEST_RESULT>...</REQUEST_RESULT>]
</SERVICE_APPLICATION_TIMEOUT_COMPONENT>
  1. component-id is the unique identifier for this set of timeout definitions.

Child elements

The SERVICE_APPLICATION_TIMEOUT_COMPONENT element may contain the following child elements:
  1. Zero or one DVM_AVAILABLE element.
  2. Zero or one KEEP_ALIVE element.
  3. Zero or one REQUEST_RESULT (for a service) element.

Usage

You use this element to provide your web service with a base set of time-out parameters. Timeouts provide a mechanism to the Genero Application Server (GAS) or web service to react to time-based events; such as user inactivity, or the time it takes to start a new application. Each timeout element specifies the number of seconds to wait prior to having the GAS perform the task related to the timeout event.
Important:

The REQUEST_RESULT timeout for a web service is not set by default. This means the GWS proxy never releases the DVM and will wait until the DVM responds to the request.

You can use this element within the COMPONENT_LIST element of the GAS configuration file to define timeout components that can be referenced by Id when configuring an application; providing a set of timeout values for the application.

Usage example

<SERVICE_APPLICATION_TIMEOUT_COMPONENT Id="cpn.ws.timeout.set1">
  <DVM_AVAILABLE>10</DVM_AVAILABLE>
  <KEEP_ALIVE>360</KEEP_ALIVE>
  <REQUEST_RESULT>45</REQUEST_RESULT>
</SERVICE_APPLICATION_TIMEOUT_COMPONENT>

In this example, the Id value - "cpn.ws.timeout.set1" - can be referenced when defining a web service in the SERVICE_LIST. The settings defined by that component are inherited. The timeout elements defined within the application's configuration, override the inherited ones.

Parent elements

This element is a child of the COMPONENT_LIST element.