File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JDBC and Relational Databases and the fly likes Multiple connection to Database Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "Multiple connection to Database" Watch "Multiple connection to Database" New topic

Multiple connection to Database

Balaji M

Joined: Jun 14, 2000
Posts: 8
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.
Monty Ireland
Ranch Hand

Joined: Oct 03, 2000
Posts: 161
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?

Multi Platform Database Developer & DBA on E.S.T.
I agree. Here's the link:
subject: Multiple connection to Database
It's not a secret anymore!