An XA resource is a participant in an XA transaction (also known as a distributed transaction). For example, given a distributed transaction that operates over a database and Infinispan, XA defines both Infinispan and the database as XA resources.
Java's API for XA transactions is JTA and XAResource is the java interface that describes an XA resource.