File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JDBC and the fly likes JDBC Connection Pooling issue Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Reply Bookmark "JDBC Connection Pooling issue" Watch "JDBC Connection Pooling issue" New topic
Author

JDBC Connection Pooling issue

Prabhudatta Choudhury
Greenhorn

Joined: Jul 03, 2009
Posts: 20

I created a connection pooling class where I have all the necessary getconnection and releaseconnection Methods. I'm trying to reuse the same connection object in through out my project. So, I created an instance variable of the Connection in the inherited class and used that in all the methods in that calss. But when I tried to run the same in Tomcat 6 its throwing some error regarding release connection.





ConnectionPoolCustom2.java



Thanks
Prabhudatta
Wendy Gibbons
Bartender

Joined: Oct 21, 2008
Posts: 1098

thanks for trying but our tags here inthe ranch use [ ] brackets not < >, so I have fixed them for you
Prabaharan Gopalan
Ranch Hand

Joined: Oct 16, 2009
Posts: 66

What exactly is the error you're getting? Were you able to execute statements through the connection acquired from the pool?


Googling doesn't make you a genius. But not Googling makes you dumber.
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: JDBC Connection Pooling issue
 
Similar Threads
setAutoCommit(autocommit);
Problems with connection pooling.
Connection Through JDBC
Connection pooling with my own cofiguration file instead of Initial Context.
connection pool problem