Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connection Pool cannot be shutdown. #26

Open
sheki opened this issue Feb 10, 2012 · 2 comments
Open

Connection Pool cannot be shutdown. #26

sheki opened this issue Feb 10, 2012 · 2 comments

Comments

@sheki
Copy link

sheki commented Feb 10, 2012

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.

@bigtoast
Copy link

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!

@sheki
Copy link
Author

sheki commented Feb 16, 2012

Yup the library is pretty awesome.
Great work.

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants