XA transaction example with Ballerina — Oracle and MySQL as resource managers

Manuri Amaya Perera
Ballerina Swan Lake Tech Blog
1 min readAug 13, 2018

Let’s write a Ballerina program that demonstrates performing an XA transaction.

We have two resource managers, a mysql database and an Oracle database. Here we have two functions to demonstrate a successful transaction and a failing one.

Here goes the program!

--

--

Manuri Amaya Perera
Ballerina Swan Lake Tech Blog

I am an Engineer at WSO2. Currently working in the Ballerina team. Mainly contributing to Ballerina data client area. My GitHub URL: https://github.com/manuri