This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JSP and the fly likes Connection not close Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Connection not close" Watch "Connection not close" New topic
Author

Connection not close

cairo fivez
Greenhorn

Joined: Nov 29, 2002
Posts: 6
Hi all,
I've with one application consist of servlets and jsp (hundred of files). I'm going to deploy this application on sun one and use sun one data source connection pooling.
The problem is that this apps open a connection in various places (jsp&servlet) but never close it. Is there any way that I can do to ask the connection pooling to close the connection. This is becase it's hard for me to manually close all open connection as there are many jsps and some of the servlet/classes couldn't be decompile (We're missing the source code)
Appreciate if someone could give an idea/hint on how to tacke this issue.
Thanks
Praful Thakare
Ranch Hand

Joined: Feb 10, 2001
Posts: 614
Hi Cairo,
If it is possible to decompile & change your connection pool class,you can
manipulate close method ,overridden from java.sql.Connection.
Cheers
Praful


All desirable things in life are either illegal, banned, expensive or married to someone else !!!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Connection not close
 
Similar Threads
Preloaded servlet
Leave connection Open or Close it???
jsp and java beans question
User Login Page
Better approach to get DB Connection