Hello All,
In my code, I have made sure that I am closing all the open dataBase connections like below:
finally{
if(con!=null){
dao.close(null,conn);
}
}
where conn is the connection object. and null is for preparedStatement.
In the dao close() method if connection is not null, con.close() (
java method) is called.
While debugging the application , I found out that the connection is not getting close.
my question is : does the connection is closed by calling connection.close method (provied by jdk) or it just marks it for garbage collection.
How can I make sure that the connection is getting closed? (is it by passing exclusively null for connection object?)
Thanks,
Trupti
[ April 19, 2005: Message edited by: trupti nigam ]