Drivers that use the DataSource interface

Drivers implementing the DataSource interface are treated differently than “simple” drivers. This is the difference between JDBC level 1 and JDBC level 2 (also known as “JDBC specification version 2.0”). Applications must use getXXX and setXXX methods to pass the user name, password, and other information to the driver. The get/set methods you use are URL-dependent. For example, if you connect to an Oracle database using an Oracle JDBC driver, and your Oracle cache URL is as listed below, EAServer calls these methods on the driver instance: setDriverType(thin), setServer(conlabtt), setPort(1521).

DriverType=thin:Server=conlabtt:Port=1521:DatabaseName=conlabtt

To find the exact name of the driver class, and the properties, run:

$JAVA_HOME/bin/javap oracle.jdbc.pool.OracleDataSource