This week's giveaway is in the Programmer Certification (OCPJP) forum.
We're giving away four copies of Java Mock Exams (software) and have David Mayer on-line!
See this thread for details.
Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Multiple connection to Database

 
Balaji M
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there,
my part in the project consists of five different classes and in atleast three of the classes i have to do database operations. i have a connection object in each class. sometimes it happens that i have to call one class from the other class. so when i call a method in a different class the method is executed properly but while returning to the calling class gives a 'connection busy' exception. can someone sort it out for me.
Regards..Balaji
 
Monty Ireland
Ranch Hand
Posts: 161
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Need More Info ...
1. what type of driver are you using? i.e. (1,2,3,4)
2. what vendor driver are you using?
3. what ver of jdbc are you using?
4. how are you registreing your driver(s)?
5. what ver of the jdk are you using?
Monty6
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!