Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to maintain database using Threads

 
ganesh seluka
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why do this? Would it not just make sense to use a Connection Pool?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic