Question: what is a transaction what is the difference between a local and a global transaction?
Answer: Global Transactions. Local transactions are specific to a single transactional resource like a JDBC connection, whereas global transactions can span multiple transactional resources like transaction in a distributed system.