This section describes the guidelines for deploying DataDirect XQuery® on an application server running Oracle Application Server 10g.
![]()
Before you begin, make sure you have installed DataDirect XQuery® by copying the DataDirect XQuery® jar files to Oracle_Application_Server_home/j2ee/home/applib, where Oracle_Application_Server_home is your Oracle Application Server installation directory.
To deploy DataDirect XQuery® on an application server running Oracle Containers for J2EE 10g, you need to:
These steps are described in the following sections.
![]()
To create and configure a JDBC DataSource resource:

The Create Connection Pool – Application window appears.

The Create Connection Pool window refreshes, as shown here:


Because Oracle Application Server supports advanced pooling properties only with Oracle data sources, you need to set timeout values.

Note the following before setting the Inactivity Timeout (seconds) field:
Oracle Application Server is not able to detect stale connections in the pool; nor is it able to ping unused connections to keep them active. Because of this, it is possible that your database or firewall will close idle connections.
To prevent this from occurring, set the Inactivity Timeout (seconds) field to a value lower than the database session idle timeout. If this value is not set appropriately, your connection in the pool can become corrupt and subsequent requests for a connection from the pool will result in your application receiving a stale connection.
![]()
Once you have created the JDBC DataSource resource, you need to create the JNDI binding:
The Create Data Source – Application & Type window appears.

The Create Data Source – Managed Data Source window appears:

You are returned to the JDBC Resources window:

To deploy the servlet:

See the Example: JDBC Connection Pooling Servlet for an example of implementing a JDBC connection pool in DataDirect XQuery®.
![]()