The data source will be named ds-nonXA using the required JNDI jdbc/ds-nonXA. The target will be the cluster PROD_Cluster, the same target as that of the DBApp application. The database username is dbuser and the password is dbpwd.

Carry out the following steps to create a JDBC data source:
  1. Access the Administration Console with your web browser at http://adminhost.domain.local:7001/console.
  2. Click on the Lock & Edit button to start a new edit session.
  3. Click on the plus sign to open the Services tree on the left, and then click on Data Sources.
  4. Click on the New button and then click on Generic Data Source.
  5. Type ds-nonXA in the Name field and jdbc/ds-nonXA in the JNDI Name field.
  6. Select the Oracle option from the Database Type drop-down menu. Click on the Next button.
  7. Choose *Oracle's Driver (Thin) for Service connections; Versions:9.0.1 and later from the Database Driver drop-down menu. Click on the Next button.
  8. Leave the default values for the Transaction options and click on the Next button.
  9. On the Connection Properties page, type dbservice in the Database Name field, dbhost in the Host Name field, and 1521 in the Port field. Complete the Database User Name, Password, and Confirm Password fields by typing dbuser and dbpwd as the username and password respectively. Click on the Next button.
  10. Click on the Next button on the Test Database Connection page.
  11. Select the All servers in the cluster radio button from the PROD_Cluster cluster. Click on the Finish button.
  12. Then, click on the Activate Changes button.
A new non-XA JDBC data source was created with the parameters required by the DBApp application. The non-XA Oracle JDBC driver is the thin version. All other parameters were left as their default values.
How it works...
The Oracle driver class name used for non-XA data sources is oracle.jdbc.OracleDriver.

0 Comments