cherrylzhao commented on issue #2902: When shardingjdbc is integrated with spring, it‘s not compatible with the declarative transactions. URL: https://github.com/apache/incubator-shardingsphere/issues/2902#issuecomment-523400777 I have got some hints from your example. 1. `@Transactional` annotation only hold the connection managed by `DataSourceTransactionMananger`, it will not see the connection created from your biz code. so after completing `doCreateOrder`, the connection has been auto committed. 2. `@ShardingTransactionType` only take effect when your include `sharding-transaction-jdbc-spring` dependency in your project. since we have not deploy it in maven center repository, you should install the `shardingsphere-spi-impl` by yourself. 3. in your example, transaction type is Local instead of XA, so transaction manager will not execute rollback.
---------------------------------------------------------------- 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: [email protected] With regards, Apache Git Services
