You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am running into a similar issue where I need to programmatically close some/all the database connections. I too am using the ApachePoolingDatabaseFactory and I have gone through the code and there seems to way to get to the underlying pool or connections and there are no close/stop/shutdown methods.
-Andy
P.S. I really like this library. Good job with it!
I have forked the project https://github.com/sheki/querulous and added support for c3p0 pool with a shutdown.
I have removed the stuff I do not use, so there is just, the core.
It builds with sbt.
You can implement shutdown for Apache DBPool similarly.
If we can come up with a proper contract for shutdown, we can put in a trait and implement for all Factory's.
I am using ApachePoolingDatabaseFactory as shown in the example,
There is no way to shutdown the connection Pool.
The app just hangs.
Seing the code as well, there is no Method to shutdown the App.
The text was updated successfully, but these errors were encountered: