The GridLink data source is a new type of data source that has been available in WebLogic Server since Version 10.3.4. The GridLink is used to connect to Oracle RAC databases and is a recommended alternative to the multi data sources since it provides some useful features, such as fast connection failover, runtime connection load balancing, graceful handling of Oracle RAC outages, GridLink affinity, and SCAN addresses.
The same DBApp
application requirement from the earlier recipe will be used, but in this recipe a GridLink data source will be used instead of a multi data source.
Consider that the DBApp
application requires an XA connection with a JNDI name jdbc/ds-GridLinkXA
to a database. The database is an Oracle RAC database with two nodes. The first node runs in the dbhost-rac01
hostname and listens to the port 1521
. The second node runs in the dbhost-rac02
hostname and also listens to the port 1521
. The database has a service name dbservice
. The ONS service...