Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

more then one Drivers at once

 
Shrawan Bhageria
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI ALL

Can we Load more then one Drivers at once?
if yes than pl. explain with example

thanks
shrawan
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, you can open connections to different databases using different drivers at the same time. I don't think an example is necessary; simple duplicate the code you use to connect to your database and change the parameters - done!
 
Yilmaz Mete
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Class.forName() registers the forName()'s parameter class with the DriverManager once and only once; and these drivers map specific URLs onto themselves. "jdbc.drivers" system property contains them actually too.

Ex.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic