Oracle® Fusion Middleware Configuring and Managing JDBC Data Sources for Oracle WebLogic Server 11g Release 1 (10.3.5) Part Number E13737-04 |
|
|
View PDF |
WebLogic Server supports Fast Connection Failover, an Oracle feature which provides an application-independent method to implement Oracle RAC event notifications, such as detection and cleanup of invalid connections, load balancing of available connections, and work redistribution on active Oracle RAC instances.
For more information, see "Fast Connection Failover" at http://download-east.oracle.com/docs/cd/B19306_01/java.102/b14355/fstconfo.htm#CIHJBFFC in the Oracle® Database JDBC Developer's Guide and Reference.
To enable Fast Connection Failover on a data source, set the following connection pool properties:
In Driver Class Name—set the class name to oracle.jdbc.pool.OracleDataSource
.
In Properties—set the ONS configuration string to remotely subscribe the Oracle RAC nodes to Oracle FAN/ONS events. For example: ONSConfiguration=nodes=hostname1:port1,hostname2:port2
Note:
Oracle's OracleDataSource class is not XA-capable, so the resulting data source does not implement a XA connection pool.Because the Oracle driver uses ONS to implement Fast Connection Failover, you must add ons.jar
to the WebLogic classpath. To do so, edit the setDomainEnv
script in the domain's bin
directory, and add ons.jar
to the POST_CLASSPATH
variable.