Controlling JADE Thin Client Application Execution

You can control the applications that can be executed from any presentation client attached to an application server. The [JadeAppServer] section of the JADE initialization file contains the EnableAppRestrictions and AllowSchemaAndApp<n> parameters.

When the EnableAppRestrictions parameter is set to false (the default value), all applications can be executed by presentation clients. If this parameter is set to true, only the schema and optional applications specified in the AllowSchemaAndApp<n> parameters can be executed.

In addition, the [JadeAppServer] section provides the KeepAliveTime parameter, which enables you to specify the number of minutes that each running application checks whether the connection to the presentation client is still valid by sending a ‘keep alive’ message to the client, after every period that is specified by this parameter expires without any activity. When the application server detects that a connection has been lost, it reads the ReconnectWaitTime parameter in the [JadeAppServer] section of the JADE initialization file, which specifies a value in seconds and which defaults to zero (0), indicating that the value of the KeepAliveTime parameter is used. The application server then waits for a reconnection for the specified period before terminating the process.

When the EnableAppRestrictions parameter is set to true and the application being started is not defined in the AllowSchemaAndApp<n> parameter, the following message is displayed when attempting to start the application from the JADE development environment.

Application application-name cannot be started from the connected application server

When an application server recognizes that a connection has been lost, it does not know whether the presentation client has also realized. As a result, it waits for the number of minutes specified by the KeepAliveTime parameter, to give the presentation client the chance to reconnect. In the worst case situation, the delay before the application server disconnects the presentation client can be twice the length of the keep-alive time.

By default, the application server performs this check after every ten minutes of inactivity. For details, see "Application Server Section [JadeAppServer]" under "JADE Thin Client Sections", in the JADE Initialization File Reference.