• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Driver or datasource

 
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello there! I always thought that when configuring a datasource, for the driver, I should only use some driver, let me put this way :

<data-source
class="com.evermind.sql.DriverManagerDataSource"
name="myDS"
location="jdbc/myDS"
xa-location="jdbc/xa/myXADS"
ejb-location="jdbc/myDS"
connection-driver="oracle.jdbc.Driver"
username="x"
password="x"
url="jdbc:oracle:thin:@x:1521:x"
inactivity-timeout="1200000"
max-connections="20"
/>

Well, but I've been asked about replacing the connection-driver from oracle.jdbc.driver to oracle.jdbc.pool.OracleDataSource
and it keeps working. I just wonder how, if they are completly different classes, that have no common ancestors?

Best Regards
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic