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 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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to maintain database using Threads
 
Similar Threads
Threads in Database connectivity !
Connection to the database in Web-Application (JSP apps.)
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
LOGICAL HANDLE NO LONGER VALID