Hi Sumit, I think distributed transactions(or XA transactions) is a feature of databases, you use the programming language in the same way you use it for any database.
This doc has some details about XA transaction on MySQL: http://forge.mysql.com/w/images/6/6a/MySQLXA.pdf I can see that Oracle and M$ SQL support it other than MySQL. Hope this helps, Satish Vellanki

