Configuring a Data Source Connection

This section provides the high-level steps to configure a data source connection (Non-XA or XA DataSource) to the database for your application, using the Delinea JDBC Proxy Driver.

Data Source connections are separate from Direct connections. If you need to configure a Direct connection instead, see Configuring a Direct Connection.

Data Source Connection Types

There are two types of server-managed data source connections:

  • Non-XA DataSource - For standard single database transactions (most common use case). Uses non-JTA data sources.
  • XA DataSource - For distributed transactions involving multiple databases, JMS, or other resources requiring two-phase commit. Uses JTA data sources.

Choose the type that matches your application's transaction requirements. Each type has different configuration steps as outlined below.

Configuring Non-XA DataSource Connection

Follow these steps to configure a Non-XA DataSource connection for single database transactions:

  1. Step 1: Run the Setup Utility on the server. When prompted, provide the path of the lib folder for your deployed web application.

    The Setup Utility will copy the Delinea-Jdbc-Proxy.jar and delineadriver.properties file to that location after successful setup. This step is required for all connection types. For detailed instructions on running the Setup Utility, see Running the Setup Utility.

  2. Step 2: Configure Non-XA DataSource in WebSphere Application Server

    • Create a JDBC Provider for the Delinea JDBC Proxy Driver
    • Create a standard DataSource with a JNDI name (for example, jdbc/MyDS)
  3. Step 3: Configure the Non-XA DataSource connection in your application configuration file

    Use the JNDI name you created in Step 2. For example:

    <non-jta-data-source>jdbc/MyDS</non-jta-data-source>

Configuring XA DataSource Connection

Follow these steps to configure an XA DataSource connection for distributed transactions:

  1. Step 1: Run the Setup Utility on the server. When prompted, provide the path of the lib folder for your deployed web application.

    The Setup Utility will copy the Delinea-Jdbc-Proxy.jar and delineadriver.properties file to that location after successful setup. This step is required for all connection types. For detailed instructions on running the Setup Utility, see Running the Setup Utility.

  2. Step 2: Configure XA DataSource in WebSphere Application Server

    • Create a JDBC Provider for the Delinea JDBC Proxy Driver
    • Create an XA DataSource with a JNDI name (for example, jdbc/MyXADS)
  3. Step 3: Configure the XA DataSource connection in your application configuration file

    Use the JNDI name you created in Step 2. For example:

    <jta-data-source>jdbc/MyXADS</jta-data-source>

Key Differences Between Non-XA and XA DataSource

Aspect Non-XA DataSource XA DataSource
Transaction Type Single database (local) Distributed (2-phase commit)
DataSource Type Standard DataSource XA DataSource
Configuration Tag <non-jta-data-source> <jta-data-source>
Use Case Most applications Multiple databases/JMS resources

Note: The server manages connection pooling for data source connections, which provides better performance compared to direct connections.