This section provides the steps to enable Apache Tomcat for JNDI-based database operations.
To create a JNDI connection in Apache Tomcat, perform the following steps:
http://localhost:8080/
The preceding URL must open the Apache Tomcat home page.
The JNDI name that is used by the CA components. This name must match with the AppServerConnectionPoolName.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 Oracle driver, then URL would be: 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"/>
Configuration changes for Tomcat8 (apache-tomcat-8.0.24) and JDK8 (1.8.0_51)
There are few configuration attribute names that have been updated in tomcat 8. Couple of them are listed in the sample here. Verify your attribute names from tomcat 8 documentation if you are using any others which are not shown in the sample.
<Resource name="< data source_name >" auth="Container"
type="javax.sql.DataSource" username="USER_ID" password="PASSWORD"
driverClassName="JDBC_Driver_Class " url="JDBC_url" maxWaitMillis="30000"
maxTotal="32" maxIdle="4" initialSize="4"
timeBetweenEvictionRunsMillis="600000"
minEvictableIdleTimeMillis="600000"/>
Note :
The maxActive configuration option has been renamed to maxTotal
The maxWait configuration option has been renamed to maxWaitMillis
Java 8 disables SSLv3 by default. To enable it follow these steps:
|
Copyright © 2013 CA Technologies.
All rights reserved.
|
|