FastCGI for Sun Java System Web Server 7.0

SunĀ® Web Server 7 has integrated FastCGI support.

Note:

Assume the Genero Application Server is installed in the following directory (FGLASDIR): /opt/gas. Make the appropriate substitution for the FGLASDIR when applying these examples to your own configuration.

For more information, search for documentation on "FastCGI Plug-in" provided by http://docs.oracle.com/en/.

Enable FastCGI Plug-in

Add this line to your magnus.conf configuration file:
Init fn="load-modules" shlib="libfastcgi.so"

FastCGI Plug-in configuration to manage GAS

Add these lines in your obj.conf configuration file:
<Object name="default">
  ...
  NameTrans fn="assign-name" from="/gas/*" name="gas.config"
  ...
</Object>

<Object name="gas.config">
  Service fn="responder-fastcgi" app-env="FGLASDIR=/opt/gas" 
  app-path="/opt/gas/bin/wrapper.fcgi" reuse-connection="true" 
  resp-timeout="300" restart-interval="0"
</Object>
Important: Avoiding timeout issues

The resp-timeout must be higher than both the REQUEST_RESULT and DVM_AVAILABLE GAS configurations.

Default values:
  • REQUEST_RESULT: 45s
  • DVM_AVAILABLE: 10s

With these default values, this may not be an issue, but if you increase either value, adjust the resp-timeout accordingly.