Setting a call time‑out programmatically

Note

You must explicitly create a connection with the connect() method to use setCallTimeout().

Use the setCallTimeout() method to set the call time‑out value in seconds. The call time‑out measures the length of time that the .NET client waits for a return from a remote call to xfServerPlus (this is ‘C’ in figure 1). This time‑out is measured for each send–receive request between the client and xfServerPlus. The default value is 1800 seconds (30 minutes).

Once this value has been set, it will continue to be used for all subsequent calls in the current session until it is reset with another invocation of this method. For example, to set the call time‑out to 20 minutes use

userSess.setCallTimeout(1200);

A separate call time‑out value can be set for xfServerPlus; see SET_XFPL_TIMEOUT.