posted 18 years ago
Connection pooling is an specefic kind of object pooling .
in connection pooling we create some connections in a pool and give them to any client who need to use a connection , the the user turn back the connection to the pool after it complete its task.
connections remaining in the pool is configurable , you can configure how much time a connection should stay idel , pool size, time out , increment policy .....
in object pooling we create a pool of objects that are not easy to instaciate , we create them and put them in the pool , and when we want to use them there is no need to instanciate the Object again , instead we may change some of its properties.
usually pooling used when creating and destroying some objects are resource consumer.
hth