Administering the Genero Application Server / Tools and Commands |
httpdispatch is the standalone dispatcher that starts the Genero Application Server (GAS) in command line. No web server is needed. It is only use in development mode.
For deployment, use the dispatcher designed for your web server.
httpdispatch [options]
Option | Description |
---|---|
-h --help |
Displays help information. |
-p directory --as-directory directory |
Specify the Genero Application Server directory. |
-f configuration_file --configuration-file configuration_file |
Specify which configuration file to use when starting the Genero Application Server dispatcher. If not specified, the default configuration file, $FGLASDIR/etc/as.xcf, is used. |
-k --no-keepalive |
Disable keep alive for http connections. For debug purpose only. |
-E name=value --resource-overwrite name=value |
Overwrites the resource defined in the configuration file or creates a new one. Example: httpdispatch -E res.dvm.wa=$FGLDIR/bin/myrun If in the configuration file "res.dvm.wa" has another value it is now set to myrun. The final value is the one set in the option. |
-V --version |
Displays version information. |
<INTERFACE_TO_CONNECTOR> <TCP_BASE_PORT>6300</TCP_BASE_PORT> <TCP_PORT_OFFSET>94</TCP_PORT_OFFSET> ... </INTERFACE_TO_CONNECTOR>
The default port specified is 6394 - derived by adding the base port (6300) to the port offset (94). Set the values to a port which is not used by another application.
kill -9
Once the web server restarts the dispatcher, the dispatcher uses the session table to reconnect to the various proxies. The applications are still maintained by proxies, are still running, and once the dispatcher is relaunched, the user can continue his or her work.
Ctrl + C or sending SIGTERM will stop the standalone dispatcher, and in both cases the dispatcher will request all proxies to stop. With kill -9 the dispatcher process is killed yet the sessions remain alive and untouched. When the dispatcher is restarted,the sessions continue to be active. Notice, the fastcgi dispatcher will stop sessions on Ctrl-C too if started in standalone mode. But not on SIGTERM.