Hi,
In my application i am having a two classes which interacts with the database (ie creates the prepared statements & executes the query...etc.)
Now for getting the connection to the database I have made a general class called DTSConnection having a getConnection() & closePreStCon() methods which gets the connection & closes the connection respectively.
Now if do a simple connection then it works fine.
But when i am using connection pooling ,i am getting the following error:
A JDBC pool connection leak was detected.A connection leak occurs when a connection obtained from the pool was not closed explicitly by calling close() & then was disposed by the Garbage collector & returned to the connection pool. I am providing the code templates which i have used for both the query interactor classes which is related to the connection below....
Also my actual environment where the project is to be depolyed consists of
weblogic server & unix enviroment with jdk1.3.
But my development environment consists of Tomcat 4.1 & jdk 1.4 & Windows.
In my development enviroment i am not obtaining the connections using pooling while in deployemnt environment connection pooling is used. Both the query interactor classes are as follows:
QueryInteractor class 1
QueryInteractor 2
So please help me to sort out the error And also please tell me what is the reson behind this problem.
What i think is (just a guess )it may be due to the use of getConnection() method in both the classes.But i have closed all the connections afetr getting them...
[ June 13, 2006: Message edited by: Jignesh Gohel ]