...
Code Block | ||
---|---|---|
| ||
<GlobalNamingResources> <Resource auth="Container" driverClassName="oracle.jdbc.OracleDriver" factory="org.apache.tomcat.jdbc.pool.DataSourceFactory" maxactive="10" maxidle="10" maxwait="-1" name="jdbc/ModelHouseCT" password="CT_MODEL" type="javax.sql.DataSource" url="jdbc:oracle:thin:@localhost:1521:XE" username="CT_MODEL"/> <Resource auth="Container" driverClassName="oracle.jdbc.OracleDriver" factory="org.apache.tomcat.jdbc.pool.DataSourceFactory" maxactive="10" maxidle="10" maxwait="-1" name="jdbc/ModelHouse" password="CT_MODEL" type="javax.sql.DataSource" url="jdbc:oracle:thin:@localhost:1521:XE" username="CT_MODEL"/> </GlobalNamingResources> |
Note |
---|
Note: The <user-name> and <password> elements green highlighted in the snippet should match with the database username and password provided for ctmodelhouse. |
Note |
---|
Note: In case you have installed the Oracle database version 9i, then you should use oracle.jdbc.driver.OracleDriver class for JDBC connections, and for versions above 9i, you should use oracle.jdbc.OracleDriver class. |
...