Handling timeouts

The connection manager definition specifies the maximum number of seconds that an application can hold a connection without using it before the connection manager times out the connection and returns it to the pool. If the length of time in which there is no activity in the connection exceeds the orphanTimeout setting, the connection manager marks the connection as ready to return to the connection pool. The connection remains in this state until application uses it or its inactivity exceeds the setting for a second time. If it does, the connection manager releases the connection and returns it to the pool. If the application tries to use the connection after it has returned to the pool, the application receives a StaleConnectionException.

Note that connection time out defined for the connection manager cannot exceed the connection time out defined in WebSphere(R) Application Server. If the connection manager definition does not specify a value, the connection manager uses the default value.