When an EXCI connection to CICS is used by an ECI resource adapter either in remote mode through a Gateway daemon running on z/OS or in local mode on z/OS, ECI timeout is not supported.
Any value set by the setExecuteTimeout method of the ECIInteractionSpec class is ignored. If you are using EXCI, you can set the TIMEOUT parameter in the EXCI options table DFHXCOPT. If you are using IPIC in remote mode, you can set the CONNECTTIMEOUT parameter in the configuration file. If you are using IPIC in local mode, you can set this in the JavaGateway.setSocketConnectTimeout() method.