According to the DBCP document, BasicDataSource does not support setLoginTimeout (). My question is, how do I set LoginTimeout to create Connection objects? I know that I can set maxWait to the pool, but I understand that this will only be used when the pool is exhausted and you expect the existing connection to be freed. This will not save me from a situation when it is necessary to create a new connection, but the connection / entry into the database freezes.
Any help is appreciated. Thanks.
database oracle apache jdbc connection
Ray
source share