This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes JDBC 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 EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Databases » JDBC
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: 144
hi

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

Joined: Oct 23, 2005
Posts: 3697
    
    5

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


My Blog: Down Home Country Coding with Scott Selikoff
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Close the Database Connection in finally block
 
Similar Threads
Result set not showing the latest data
About Connection.close()
Getting Connection Establishing in Linux Server
error when i run the program
i lost the database connection after 10 hours .. hibernate do cry myself ;..(