Java Reference
In-Depth Information
A JDBC connection gets added to the Database Navigator .
An OracleDBConnection-jdbc.xml configuration file gets created in the src/
META-INF directory. The configuration file specifies the connection settings such as
the driver class and the connection URL. The configuration file also specifies a JNDI
data source, jdbc/OracleDBConnectionDS , which gets created when the JDBC
connection OracleDBConnection is created. The configuration file is listed next:
<?xml version = '1.0' encoding = 'windows-1252'?>
<jdbc-data-source xmlns:xsi="http://www.w3.org/2001/XMLSchema-
instance"
xsi:schemaLocation="http://www.bea.com/ns/weblogic/jdbc-data-
source http://www.bea.com/ns/weblogic/jdbc-data-source/1.0/jdbc-data-
source.xsd"
xmlns="http://www.bea.com/ns/weblogic/jdbc-data-source">
<name>OracleDBConnection</name>
<jdbc-driver-params>
<url>jdbc:oracle:thin:@localhost:1521:XE</url>
<driver-name>oracle.jdbc.OracleDriver</driver-name>
<properties>
<property>
<name>user</name>
<value>OE</value>
</property>
<property>
<name>servername</name>
<value>localhost</value>
</property>
<property>
 
Search WWH ::




Custom Search