posted 20 years ago
I am geting Connection from the using DataSouce by following code...
InitialContext objInitialContext = new InitialContext();
DataSource objDataSource = (DataSource)objInitialContext.lookup(datasource);
System.out.println("Inside DBManager.getConnection() ");
return objDataSource.getConnection();
I am using following code to close the Connection
if(conn != null){
conn.close();
conn = null;
}
I want to know here, by doing Connection.close(), does the Connection object returns to the ConnectionPool?
My blood is tested +ve for Java.