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"/>
|
Copyright © 2013 CA.
All rights reserved.
|
|