Configuring the IdP data source in the web application server
Tomcat, WebSphere®, and WebLogic are supported web application servers for the IdP server. After the IdP server is deployed on the web application server, configure a JNDI data source to connect the IdP server with the data repository.
About this task
See the documentation for your web application server for details on how to configure a JNDI data source.
For example, the following configuration is required to create the data source for an Oracle
database in a Tomcat server. In the conf/context.xml
file under your Tomcat
installation, define a new resource.
<Resource name="idp_datasource"
auth="Container"
type="javax.sql.DataSource"
maxActive="100" maxIdle="30" maxWait="10000"
username="your_username" password="your_password"
driverClassName="com.microsoft.sqlserver.jdbc.SQLServerDriver"
url="jdbc:sqlserver://localhost:1433;DatabaseName=IdPServer"/>
Register this resource in the conf/web.xml
file under your Tomcat
installation.
<resource-ref>
<description>SQL Server Datasource example</description>
<res-ref-name>idp_datasource</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>