*
The moose likes JDBC and the fly likes Driver or datasource Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Driver or datasource" Watch "Driver or datasource" New topic
Author

Driver or datasource

Vinicius Carvalho
Ranch Hand

Joined: Dec 07, 2004
Posts: 61
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="jdbcracle: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
 
Don't get me started about those stupid light bulbs.
 
subject: Driver or datasource
 
Similar Threads
Websphere, Entity bean called by MDB
Creating a Datasource in OC4J
OutOfMemoryError caused by PreparedStatements held in Connection
What is location, xa-location and ejb-location in JNDI?
datasource connection in admin console unsuccessful