This sample project uses narayana.io TX manager (best opensource/non-opensource tx manager there is!) with Spring Boot and Apache Camel to test out 2PC/XA transactions with a JMS resources (artemis) and a database (h2).
christian-posta/spring-boot-camel-narayana
Show using XA transactions with Apache Camel and Spring Boot with the narayana.io TX manager
Java