File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JDBC and the fly likes how to maintain database using Threads Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "how to maintain database using Threads" Watch "how to maintain database using Threads" New topic
Author

how to maintain database using Threads

ganesh seluka
Greenhorn

Joined: May 01, 2008
Posts: 7
Tell me how to maintain database connection open and close in multiple Threads.
whether there is any function to check database connection is open or not while any exception throws in threads able to handle database connection.
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

Why do this? Would it not just make sense to use a Connection Pool?


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
 
 
subject: how to maintain database using Threads
 
Similar Threads
Connection to the database in Web-Application (JSP apps.)
How to control a thread to run in a single instance where the code is deployed in multiple instances
Threads in Database connectivity !
Connection to the database in Web-Application (JSP apps.)
LOGICAL HANDLE NO LONGER VALID