This week's book giveaway is in the Big Data forum.
We're giving away four copies of Elasticsearch in Action and have Radu Gheorghe & Matthew Lee Hinman on-line!
See this thread for details.
The moose likes JDBC and Relational Databases and the fly likes Close the Database Connection in finally block Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Elasticsearch in Action this week in the Big Data forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "Close the Database Connection in finally block" Watch "Close the Database Connection in finally block" New topic
Author

Close the Database Connection in finally block

santhosh kumar vk
Ranch Hand

Joined: Aug 25, 2009
Posts: 146
hi

how to close the database connection in finally block if not created connection by some problem in java
Scott Selikoff
author
Saloon Keeper

Joined: Oct 23, 2005
Posts: 3739
    
  10

This might help: http://www.selikoff.net/2008/07/30/finally-closing-jdbc-resources/


[OCA 8 Book] [Blog]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Close the Database Connection in finally block