Connection management is responsible for the lifetime management of the connections of an adapter. It internally keeps a pool of the connections ready for use. This connection pool is credential and URI-based. The credential contains a user name and password that define the security context the connection runs under.
When the same credentials and URI are used, any channel being opened under the same connection factory obtains the connection from the pool if there is one available already.
Connection pool manager keeps records of how many open connections there are to that URI regardless of the credentials and across the boundaries of the channel factory. For example, in one system, you can have two users who have different credentials, which means there are two channel factories connecting to the system.
Note |
|---|
|
The adapter may be limited with respect to the number of connections it can support, generally limited by system resources.
|
To help adapter developers configure the connection pool settings, the WCF LOB Adapter SDK provides two classes, ConnectionPoolSettings and ConnectionManagerSettings.