getVendorConnectionSafe Change in Unwrap Implementation

Introduction and Roadmap 1-3

1.5.1 getVendorConnectionSafe

This release provides getVendorConnectionSafe to access a physical connection. Similar to getVendorConnection, this mechanism returns the underlying physical connection the vendor connection from a pooled database connection a logical connection. However, when the connection is closed, it is returned to the pool, independent of the setting of Remove Infected Connections Enabled. For some applications, getVendorConnectionSafe may enhance performance by eliminating the excessive creation of connections. See Getting a Physical Connection from a Data Source .

1.5.2 Change in Unwrap Implementation

The unwrap implementation has been changed in WebLogic Server 10.3.4.0 this is implemented for CachedRowSet, CallableStatement, Connection, DatabaseMetaData , DataSource, FilteredRowSet, JdbcRowSet, JoinRowSet, ParameterMetaData , PreparedStatement, ResultSet, ResultSetMetaData, RowSet, RowSetMetaData , Statement, SyncResolver, WebRowSet. The JDBC 4.0 specification specifies that this implementation can only be called with an interface; it is invalid to call it with a base class. In past releases, this restriction has not been enforced. In WebLogic Server 10.3.4.0, this restriction is enforced. To limit the impact on existing applications using Oracle data types, this restriction is not enforced for classes whose name starts with oracle.sql. 1-4 Oracle Fusion Middleware Programming JDBC for Oracle WebLogic Server 2 Using WebLogic JDBC in an Application 2-1 2 Using WebLogic JDBC in an Application You use the WebLogic Server Administration Console to enable, configure, and monitor features of WebLogic Server, including JDBC data sources and multi data sources. You can do the same tasks programmatically using the JMX API and the WebLogic Scripting Tool WLST. After configuring JDBC connectivity components, you can use them in your applications. The following sections describe how to use the JDBC connectivity in your applications. ■ Section 2.1, Getting a Database Connection from a DataSource Object