My Oracle Support Banner

Although weblogic.datasource.endLocalTxOnNonXAConWithCommit is True, a Non-XA Connection is Not Committed After Closing the Connection (Doc ID 2129810.1)

Last updated on MARCH 28, 2024

Applies to:

Oracle WebLogic Server - Version 12.1.2.0.0 to 12.2.1.0.0 [Release 12c]
Information in this document applies to any platform.

Symptoms

From WebLogic (WLS) 12.1.2, weblogic.datasource.endLocalTxOnNonXAConWithCommit is added as system property.
If application does not complete (commit or rollback) the local transaction before closing the non-XA connection, it expects that the connection will be committed when the property is true (default value is true).

Reference:
Oracle® Fusion Middleware Administering JDBC Data Sources for Oracle WebLogic Server
Chapter 9 - JDBC Data Source Transaction Options
Local Transaction Completion when Closing a Connection

However, if a non-XA connection has been used in global transaction once, the connection is not committed after closing connection without commit/rollback.

Therefore, if the application does not call commit or rollback explicitly for the connection, it remains non-resolved transaction or the connection will be committed/rolled back on the unexpected timing.

In summary, this issue occurs under the following conditions:

- weblogic.datasource.endLocalTxOnNonXAConWithCommit is true (default is true).
- setAutoCommit is false.
- Application does not complete (commit/rollback) the local transaction before closing the non-XA connection.
- The Non-XA connection has been used in global transaction before used in local transaction. (It means that it has been used as JTSConnection).

Changes

 

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Changes
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.