This week's book giveaway is in the Cloud/Virtualizaton forum.
We're giving away four copies of Mesos in Action and have Roger Ignazio on-line!
See this thread for details.
Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

generic Jdbc code which can take different vendor database and driver selection from user

 
ravi taneja
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys,
want to build a jdbc code which can have database choice and driver selection entered by user. we should be able to load the driver and pass the connection url for different databases at runtime........Please help me out...
ravi
 
Wei Dai
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

 
Wendy Gibbons
Bartender
Posts: 1111
Eclipse IDE Oracle VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Wei please use code tags, see how much prettier and easy to read they make your code.

Anyway expecting users to know the driver name is a bit off.

We used to have a properties file with the actual details, then the user could choose a helpfull name, and that linked to all of the dirty details.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic