java4all@1986 java. Powered by Blogger.

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

FaceBook Login

HTML/JAVASCRIPT

HTML/JAVASCRIPT

HTML/JAVASCRIPT

HTML/JAVASCRIPT

Total Pageviews

STATCOUNTER

  © Blogger template Simple n' Sweet by Ourblogtemplates.com 2009

Back to TOP