Zze0 commented 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, whether XA transactions can be used after 
JtaAutoConfiguration is excluded?

----------------------------------------------------------------
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

Reply via email to