Server Connection Recovery

A VLF-WIN Framework can be configured to handle a temporary loss of connection to a server. For example, this might happen when a user's laptop moves out of range of the wireless base station.

The Framework can be configured to check the server connection:

The Framework checks the connection by attempting to run a simple function on the server.

If the reconnection attempt fails, or if the function runs but does not return an OK value, then the Framework can respond in a number of ways:

 

Some things worth knowing

A server connection check will not happen while your RDML(X) code is executing unless the code specifically requests avCheckConnection.

Even if the "Check before executing command" option is checked, you will still need to include invoke #avFrameworkManager.avCheckConnection in your command handlers and filters prior to doing any server database IO (for example, prior to doing searches and saves).

To use connection recovery you need to make sure any database commitment control boundaries you use do not span user interactions. A database commitment control boundary cannot span a session reconnection.   

If you are using connection recovery you should avoid using session based values (e.g. the server *JOBNBR) as 'keys' to information in your application session because they will probably change after a reconnection.   

The session recovery feature deals with LANSA super-server sessions only. It does not recover a 5250 RAMP session.    

If the Framework is locked by Framework locking, connection checking and recovery is not performed, except for these situations: