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…