Getting started 3-7

heartbeat

You can specify an optional heartbeat action for the application specified by app-name. You can use this feature to send an indication to the host that a session is still active. Some hosts log out sessions that remain idle for a period of time. You can also use the heartbeat action to check connectivity, verifying that the session remains on the appropriate screen. Typically, the heartbeat action contains a logout-action template which brings the session back to the login screen if the connectivity with the mainframe fails. If you do not need a heartbeat action, enter a hyphen for this action.

You specify the heartbeat in this format: actiontemplate@n, where n is the number of seconds between each execution of the action template when the session is idle.

The heartbeat action template uses the same syntax as the action templates described earlier in this chapter, and usually only specifies a single screen template. That screen template is usually the last screen specified in the initial-action template. Typically, your screen template would only include a key-descriptorline, usually the ENTER key and validation-tag.

protocol

The protocol entry indicates the communications protocol being used by app-name. This field is required and should be set to vt100.

Example “trs.conf” File

Consider the following example. Initial-action template files login.act and signin.act have been defined and reside in the /u/ivr/3270 directory. There are four applications which you want to access on the host computer:

accounting, accesses the accounting software

market, tracks stock market activity

banking, retrieves credit balances

airline, for purchasing tickets on a local commuter carrier

The application names shown here are not necessarily the actual names assigned on the host computer, but they are the names assigned on the application processor for the trs.conf file and all action templates that use these applications.

Meridian IVR VT100 Gateway Development Guide Product release 2.0/I

Page 46
Image 46
Nortel Networks VT100 manual Heartbeat, Protocol, Example trs.conf File