Difference between Jdbc.close and DataSource.close?
>> Thursday, May 26, 2011
- In Jdbc con.close() terminates the connection to the D.B,it automatically closes the resultset and statement object.
- But in case of Datasource con.close ,it just return the connection to the connection pooling ,it doesnot close the connection for the D.B.It is our responsibility to close the reultsset and statement object associated with that connection.
0 comments:
Post a Comment