Joined: Tue Oct 07, 2003 9:37 am Posts: 3 Location: KwaZulu-Natal, South Africa
|
Hi
I'm using tomcat 4.0.x, Hibernate 1.2.5 and Postgresql 7.3.
Using Apache DBCP for connection pooling.
The propblem i'm having is this:
The tomcat Context is set reloadable="true" and i don't have access to any of the tomcat configurations. Normally this wouldn't be a problem but when tomcat reloads the context it leaves the old versions connections to the db open and idle. This results in postgresql refusing to issue new db connections after reaching its limit.
I create / load SessionFactory in a Servlet loaded on Context Initialisation.
Is there a way to close those old connections or am i doing somethign to cause this ?
Keep in mind i cannot alter the configs for apache or tomcat myself - only the configs for the web app.
thanks
pd
|
|