- 
        1. Re: rollback transaction does not worktomjenkinson Feb 13, 2019 5:11 AM (in response to vata2999)Maybe zhfeng can answer better but my guess is that the connection is not somehow not been configured for XA. Our example does things like this: quickstart/DatabaseConfig.java at e60eeb850e93e7cc69c2cdaae3c35b52d0c96e48 · jbosstm/quickstart · GitHub Maybe start with some trace logging on Arjuna so you can see what is happening there, plus a stack trace. 
- 
        2. Re: rollback transaction does not workvata2999 Feb 13, 2019 10:37 PM (in response to tomjenkinson)I've tried different combination of quickstart examples but most of them are based on jdbc and the one which is based on jpa is not using spring boot. I am already using XADatasource here Just to clear few things Is it okay to use tomcat as spring boot embedded server while my RESTAT runs on wildfly ? For two different microservices with separated database should it be connected to same artemis server ? because you can not run spring.artemis.mode=embedded for two different app it will lock the second app. When we have ManagedDataSource what is the point of NarayanaDataSourceBean, what is the difference? 
- 
        3. Re: rollback transaction does not workvata2999 Feb 14, 2019 1:50 AM (in response to vata2999)I also realized that in stock market application it is org.springframework.boot.jta.XADataSourceWrapper but it is not anymore there and in my app it is org.springframework.boot.jdbc.XADataSourceWrapper. 
- 
        4. Re: rollback transaction does not workvata2999 Feb 14, 2019 4:55 AM (in response to vata2999)I added this two attributes in application.properties and it works now spring.jpa.properties.hibernate.jta.allowTransactionAccess=true spring.jpa.properties.hibernate.current_session_context_class=jta 
- 
        5. Re: rollback transaction does not worktomjenkinson Feb 14, 2019 5:27 AM (in response to vata2999)Great - thanks for reporting back! Where did you find the info on how to do that, it might be useful for our community 
- 
        6. Re: rollback transaction does not workvata2999 Feb 14, 2019 7:54 AM (in response to tomjenkinson)First I was blaming Narayana then I read my ass off through HIbernate and Spring code to find out. well, That's the beauty of opensource 
- 
        7. Re: rollback transaction does not workzhfeng Feb 19, 2019 1:59 AM (in response to vata2999)We had moved the springboot and narayana integration codes to GitHub - snowdrop/narayana-spring-boot: Narayana Spring Boot autoconfiguration and starter , so I just suggest to use the new artifact <groupId>me.snowdrop</groupId> <artifactId>narayana-spring-boot-starter</artifactId> <version>2.1.0</version> Also you could configuration to enable the DBCP support. narayana.dbcp.enabled=true Hope this is helpful ! 
 
     
    