We are using DriverManagerDataSource from the Spring framework (version 2.5) to pool connections to Oracle. However, it seems that these connections don’t have any timeout defined – yesterday, after emergency database restart, we had a thread hanging on a socket read inside the database connection. How can I set the timeout, to say 10 mins, so that it raises an exception next time?
We are using DriverManagerDataSource from the Spring framework (version 2.5) to pool connections to
Share
I ended up changing the bean in the Spring context in the following way:
I don’t know if it works yet.