REQUEST_RESULT (for a service)
This REQUEST_RESULT
element specifies the number of seconds the JGAS waits for the DVM
to respond to pending transactions.
Syntax
<REQUEST_RESULT>seconds</REQUEST_RESULT>
- seconds specifies the number of seconds to wait for a response from a transaction request.
Child elements
There are no child elements.
Usage
You use the REQUEST_RESULT
timeout to provide information to the user when a web
service transaction is taking longer than expected. It specifies the number of seconds to wait for
the DVM to respond to the JGAS, after which the JGAS sends an HTTP 400 error page to the front-end to inform the user that the request has
taken too long to fulfill.
The front-end cannot recover from a HTTP 400 error page, and any web service client application must send a new request.
The REQUEST_RESULT timeout for a web service is not set by default. This means the GWS never releases the DVM and will wait until the DVM responds to the request.
Usage example for web service
<REQUEST_RESULT>100</REQUEST_RESULT>
When configuring this setting, ensure you set the timeout less than the Common Gateway Interface (CGI) timeout of the web server you are using.
The REQUEST_RESULT
timeout is referenced by the GWS
to release the DVM in charge of a service that has not responded in the given time frame.