[GitHub] [incubator-shardingsphere] Zze0 edited a comment on issue #4002: Transactions cannot be rolled back properly when using local transaction.
Zze0 edited a comment on issue #4002: Transactions cannot be rolled back properly when using local transaction. URL: https://github.com/apache/incubator-shardingsphere/issues/4002#issuecomment-575496502 > hi, you should exclude the `JtaAutoConfiguration ` in your project like this > > ``` > @SpringBootApplication(exclude = JtaAutoConfiguration.class) > ``` > > aslo @ShardingTransactionType doesn't work without [sharding-transaction-jdbc-spring](https://github.com/OpenSharding/shardingsphere-spi-impl/tree/4.0.0-RC2/sharding-spring/sharding-transaction-spring-boot-starter/sharding-transaction-jdbc-spring-boot-starter) dependency. we haven't merge it to ShardingSphere now, you should deploy it by yourself Thank you for your patient reply. It finally worked when I excluded JtaAutoConfiguration from my project. The solution is to use DataSourceTransactionManager by default after excluded JtaAutoConfiguration ? The second question is, can I use 2PC XA transactions after excluding JtaAutoConfiguration? (Even if that means no JtaTransactionManager) This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services
[GitHub] [incubator-shardingsphere] Zze0 edited a comment on issue #4002: Transactions cannot be rolled back properly when using local transaction.
Zze0 edited a comment on issue #4002: Transactions cannot be rolled back properly when using local transaction. URL: https://github.com/apache/incubator-shardingsphere/issues/4002#issuecomment-575496502 > hi, you should exclude the `JtaAutoConfiguration ` in your project like this > > ``` > @SpringBootApplication(exclude = JtaAutoConfiguration.class) > ``` > > aslo @ShardingTransactionType doesn't work without [sharding-transaction-jdbc-spring](https://github.com/OpenSharding/shardingsphere-spi-impl/tree/4.0.0-RC2/sharding-spring/sharding-transaction-spring-boot-starter/sharding-transaction-jdbc-spring-boot-starter) dependency. we haven't merge it to ShardingSphere now, you should deploy it by yourself Thank you for your patient reply. It finally worked When I excluded JtaAutoConfiguration from my project. The solution is to Use DataSourceTransactionManager by default After excluded JtaAutoConfiguration ? The second question is, can I use 2PC XA transactions after excluding JtaAutoConfiguration? (Even if that means no JtaTransactionManager) This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services