This section provides the steps to enable Apache Tomcat for JNDI-based database operations. To create a JNDI connection in Apache Tomcat:
http://localhost:8080/
The JNDI name that is used by the Advanced Authentication components.
Important! This name must match with the AppServerConnection PoolName.N in arcotcommon.ini (without the java:comp/env/ prefix).
The database user ID.
The database password.
The JDBC driver class name, for example:
oracle.jdbc.driver.OracleDriver
The JDBC URL for the database server, for example, if you are using the Oracle driver, then the URL is in the following format:
jdbc:oracle:thin:<server>:<database_port>:<sid>
<Resource name="SampleDS"
auth="Container"
type="javax.sql.DataSource"
factory="org.apache.tomcat.dbcp.dbcp.BasicDataSourceFactory"
username="<userid>"
password="<password>"
driverClassName="<JDBC driver class>"
url="<jdbc-url>"
maxWait="30000"
maxActive="32"
maxIdle="8"
initialSize="4"
timeBetweenEvictionRunsMillis="300000"
minEvictableIdleTimeMillis="30000"/>
<ResourceLink global="SampleDS" name="SampleDS" type="javax.sql.DataSource"/>
|
Copyright © 2013 CA.
All rights reserved.
|
|