• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Configuring an IDE w/2 JDBC Drivers

 
Dale DeMott
Ranch Hand
Posts: 515
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm working w/Eclipse and currently have in my "RUN" config [under the argument tab] the following line.

-Djdbc.drivers=oracle.jdbc.OracleDriver

This is great if I want to only run 1 database. I have 2 that I need to use. Does anyone know how I can cofigure my eclipse to accept 2 jdbc drivers for 2 databases?

TIA
 
Scott Selikoff
author
Saloon Keeper
Posts: 4014
18
Eclipse IDE Flex Google Web Toolkit
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I believe the command line option you list is more of a convenience option than a requirement. You can leave it off altogether, add both jars to the classpath, and then in the code registrar which jdbc driver you want to use during runtime.
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That will work, assuming there is a driver for that url in your classpath.
[ January 18, 2007: Message edited by: Paul Sturrock ]
 
Dale DeMott
Ranch Hand
Posts: 515
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here's what I'm trying...


Here's the method...



The problem is that the class that I'm registering does NOT extend the Driver class that the driver manager wants it cast to.

Any suggestions?...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic