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?
to your account
Jerome Preli opened SPR-9718 and commented
Using Spring 3.1.2 and Hibernate 3.6.10
I have set up a routing datasource with a master and a slave database based on the the following blog: http://blog.springsource.org/2007/01/23/dynamic-datasource-routing/
I use this routing datasource in a LocalContainerEntityManagerFactoryBean
It seems to works fine so I have deploy the web app in prod and everything is going fine but my number of opened JDBC connection keeps growing!
So I had a deeper look and actually even if Hibernate succeffully release the JDBC connection before releasing the EntityManager the JDBC connection never closes.
Do you have any workaround or can you fix this?
Please find attached the main files of my webapp linked to this issue.
Thank you very much
1 votes, 3 watchers
The text was updated successfully, but these errors were encountered:
Jerome Preli commented
I was using javamelody to monitor these jdbc connections!
It's the monitoring that is wrong apparently: https://code.google.com/p/javamelody/issues/detail?id=399#makechanges
Sorry for the incoveignence.
Keep you posted if anything new.
Thanks again for all your work! Spring is Brilliant...
Sorry, something went wrong.
Stéphane Nicoll commented
thanks for the feedback!
No branches or pull requests