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 RDBMS Connections Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "Multiple RDBMS Connections" Watch "Multiple RDBMS Connections" New topic

Multiple RDBMS Connections

L Goundalkar
Ranch Hand

Joined: Jul 05, 2001
Posts: 395
I need to connect to two different RDBMS lets say DB2 and Oracle.
Can I use Class.forName("mydriver") technique to load the database drivers
and get connection using DriverManager.getConnection(). I think its not possible.
How can I make my Swing ( desktop ) application to connect to different RDBMS, using the same JVM.
Thanks for the time.

Consider Paul's rocket mass heater.
subject: Multiple RDBMS Connections
It's not a secret anymore!