Skip to Main Content

Java Database Connectivity (JDBC)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Connection Busy

843854Nov 19 2004 — edited Nov 23 2004
I have connection pool in which there are two vectors storing free connections and busy connections. when getConnection is called, a connection is removed from the free con vector into the busy vector;
then releaseConnection() is called, a connection is removed from the busy con vector into the free con vector:
Now the problem is somewhere in our application after calling the getConnection(), we forgot to call releaseConnection(); that cause the busy connection vector grows quickly. Is there any way to check whether a connection is really busy(being used by a SQL Statement) or not so that I can remove the idle "busy" connection from the busy vector back to the free vector?

Any help will be appreciated

Mark
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 21 2004
Added on Nov 19 2004
8 comments
224 views