Atomikos distributed transactions
Atomikos:
1. jta. properties:
Com. atomikos. icatch. output_dir =/datayes/atomikos
Com. atomikos. icatch. log_base_dir =/datayes/atomikos
If one tomcat has two atomikos applications, the two applications should not share the same location.
2. The datasource user name and password url are incorrect. The application will fail to start, and there are no error logs. No new logs will be output when the log is hit.
3. MySQL XA bug
Some users have reported problems with MySQL XA (related to this MySQL bug: http://bugs.mysql.com/bug.php? Id = 27832 external). This problem only happens if you access the same MySQL database more than once in the same transaction. A workaround can be setting the following property in jta. properties:
Com. atomikos. icatch. serial_jta_transactions = false
Also, make sure to set the following property on the MySQL datasource:
PinGlobalTxToPhysicalConnection = "true"
MariaDB's java driver also supports this workaround since v.1.1.8