Ashish Kumar Gupta
Ashish Kumar Gupta

Reputation: 279

JDBC driver does not support XA issue

I am getting "JDBC driver does not support XA issue"

Error committing transaction:; nested exception is: javax.transaction.xa.XAException: JDBC driver does not support XA, hence cannot be a participant in two-phase commit.

Upvotes: 7

Views: 14607

Answers (3)

Sébastien Temprado
Sébastien Temprado

Reputation: 1463

In the Weblogic Console, go to Services > Datasources.

Click on your datasource. Then, click on the Transaction tab:

  • Supports Global Transactions should be already selected.
  • Select Emulate Two-Phase Commit.

Save this configuration and restart the server.

Upvotes: 3

user3418815
user3418815

Reputation: 1

Still you are facing this issue, please restart weblogic server & check.

Upvotes: -1

Ankit Bansal
Ankit Bansal

Reputation: 2348

set the GlobalTransactionsProtocol attribute to LoggingLastResource (recommended) or EmulateTwoPhaseCommit for the Data Source. This should work.

Upvotes: 2

Related Questions