Quantcast
Channel: Mendix Forum Questions
Viewing all articles
Browse latest Browse all 83469

XA transaction in database connection

$
0
0
In a Java action, I make a update to a data and then call a library that commits in another schema using another db connection pool. I need to ensure that the Mendix transaction and the external transaction remain in sync. i.e. If the external txn fails then Mendix transaction should fail. And vice versa. Seems need for 2 phase commit by XA transaction. How do we make Mendix use XA driver? Or is there another way? e.g. Using the action EndTransaction  to make commit in Mendix, just so we can be sure of commit status on Mx side and accordingly call the library to mark it as errored or retryable. 

Viewing all articles
Browse latest Browse all 83469


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>