Flushing JDBC connection pools

Posted by Matt on Stack Overflow See other posts from Stack Overflow or by Matt
Published on 2009-01-08T22:02:45Z Indexed on 2010/05/30 10:02 UTC
Read the original article Hit count: 179

Filed under:
|
|

Does anyone know the best (or any) way to flush a JDBC connection pool? I can't find anything obvious in the documentation. It appears connection pools aren't meant to ever be deleted.

My current thought is to delete all DataSources from the hash we store them in, which will trigger our code to make new ones. However, my first attempt throws a ConcurrentModificationException.

© Stack Overflow or respective owner

Related posts about jdbc

Related posts about connection-pooling