GatewayConnectionPoolGetConnection Method (Int32)

CICS Transaction Gateway V10.1.0.0
Acquires a connection from the connection pool, with a specified timeout period.

Namespace:  IBM.CTG
Assembly:  IBM.CTG.Client (in IBM.CTG.Client.dll) Version: 10.1.0.0 (10.1.0.0)
Syntax

public GatewayConnection GetConnection(
	int timeout
)

Parameters

timeout
Type: SystemInt32
The maximum time to wait for a connection to become available, in seconds.

Return Value

Type: GatewayConnection
An available connection.
Exceptions

ExceptionCondition
ObjectDisposedExceptionThe GatewayConnectionPool has been closed.
SocketException A new connection was attempted but the host name did not resolve to a valid IP address. -or- A new connection was attempted but could not be established.
SecurityException A new connection was attempted but a caller higher in the call stack does not have permission for the requested operation.
GatewayException A connection did not become available within the specified timeout period. -or- A new connection was attempted but an error occurred within the Gateway daemon.
Remarks

If there is no connection immediately available in the pool and the number of connections in the pool is less than MaxConnections, a new connection will be established.
See Also

Reference