Connection-Timeout on a datasource, what does it signify?
We have been trying to configure some of the parameters to the datasource. One of them is the expiration policy. This includes the cleanup thread interval in seconds and a Connection-Timeout in seconds. I can understand the cleanup thread interval. However what exactly does the Connection-Timeout signify?
Is it the maximum amount of time the connection can be present in the pool after which it is closed? If so, consider a case where the connection is in use by the application when this connection-timeout value is reached. Will the server terminate this in-use connection because of the connection-timeout?
Glenn Cartaxo replied
I assume you're talking about "Connection Lifetime?" I believe it is the time the connection will be sustained after its last use. If it's 60 seconds, then the connection will close if it's been idle for 60 seconds. That way you don't have connections open that aren't being used.
Check this link: