I have a Java web application connecting to an Oracle database running on another machine (not sure if this is relevant or not). I use DBCP to pool pools. The web application runs in JBoss 4.2.2, and we define our data source as a bean in Spring.
We use Hibernate for ORM.
Sometimes we get errors: "ORA-02396: The maximum idle time has been exceeded, please reconnect."
I tried adding properties to our DBCP BasicDataSource called "removeAbandoned" (true) and "removeAbandondedTimeout" (120) to no avail.
Any help would be greatly appreciated. If I need to provide additional information, please let me know - I am not so knowledgeable about the internal operation of the connection pool, etc.
source
share