To create a JNDI connection in Apache Tomcat
The JNDI name used by the Arcot components.
Note: The value you enter in the JNDI Name field must exactly match the "Primary JNDI Name" that you have configured in the AFM wizard.
The database user ID.
The database password.
The JDBC driver class name. Depending on the database you are using, this value would be one of the following:
For MS SQL Server:
com.microsoft.sqlserver.jdbc.SQLServerDriver
For MySQL:
com.mysql.jdbc.Driver
For Oracle:
oracle.jdbc.driver.OracleDriver
The JDBC URL for the database server. Depending on the database you are using, this URL would be one of the following:
For MS SQL Server:
jdbc:sqlserver://server:port_number;databaseName=database_name;selectMethod=cursor
For MySQL:
jdbc:mysql://host_name:port_number/database_name
For Oracle:
URL.1=jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=host_name)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=service_name)(SERVER=DEDICATED)))
<Resource name="data source_name" auth="Container" type="javax.sql.DataSource" username="user_id" password="password" driverClassName="JDBC_driver_class" url="jdbc_url" maxWait="30000" maxActive="32" maxIdle="4" initialSize="4" timeBetweenEvictionRunsMillis="600000" minEvictableIdleTimeMillis="600000"/>
<ResourceLink global="data source_name" name="data source_name" 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.
|
|