Creates a new connection pool with the specified connection pool properties.

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

Syntax

C#
public GatewayConnectionPool(
	string hostName,
	int port,
	ConnectionPoolProperties poolProperties
)
Visual Basic
Public Sub New ( _
	hostName As String, _
	port As Integer, _
	poolProperties As ConnectionPoolProperties _
)
Visual C++
public:
GatewayConnectionPool(
	String^ hostName, 
	int port, 
	ConnectionPoolProperties^ poolProperties
)

Parameters

hostName
Type: System..::..String
The host name of the Gateway daemon to connect to.
port
Type: System..::..Int32
The port that the Gateway daemon is accepting TCP/IP requests on.
poolProperties
Type: IBM.CTG..::..ConnectionPoolProperties
Properties for the connection pool.

Exceptions

ExceptionCondition
System..::..ArgumentNullExceptionhostName is nullNothingnullptra null reference (Nothing in Visual Basic).
System..::..ArgumentOutOfRangeException The port number is not valid.
-or-
One of the properties in poolProperties is not valid.
IBM.CTG..::..ClientConfigurationException The value of CtgApplid or CtgApplidQualifier specified in the application configuration file is longer than 8 characters.
System.Net.Sockets..::..SocketException The host name did not resolve to a valid IP address.
-or-
Failed to establish the minimum number of connections with the Gateway daemon.
-or-
A connection to the Gateway daemon has been lost.
System.Security..::..SecurityExceptionA caller higher in the call stack does not have permission for the requested operation.
IBM.CTG..::..GatewayExceptionAn error occurred within the Gateway daemon.

See Also