I am trying to understand local and global transaction in JPA.
In JPA Specs I found that there are two type of transaction that is RESOURCE_LOCAL and JTA aka GlobalTransaction.
But what I read somewhere that to participate in global transaction Datasource should be XA-complient.
When we declare <jta-datasource> in persistence.xml . It is javax.sql.DataSource type ,It is not javax.sql.XADataSource type and It still takes part in Global Transaction .It always confuses me.
Please provide me a clear understanding.
Thanks