Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 772
Ashish Kumar Gupta Avatar asked Dec 09 '12 07:12

Ashish Kumar Gupta


2 Answers

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.

like image 77
Sébastien Temprado Avatar answered Oct 14 '22 21:10

Sébastien Temprado


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

like image 43
Ankit Bansal Avatar answered Oct 14 '22 22:10

Ankit Bansal