You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by GitBox <gi...@apache.org> on 2019/09/02 03:03:25 UTC
[GitHub] [incubator-shardingsphere] liuyangming commented on issue #2951:
fix issue 2902: Fix bugs in support for spring declarative transactions
liuyangming commented on issue #2951: fix issue 2902: Fix bugs in support for spring declarative transactions
URL: https://github.com/apache/incubator-shardingsphere/pull/2951#issuecomment-526985520
> from my side the example is not the standard local transaction usage, you can try to modify the example to use local transaction only, the transaction will be not effective.
[Shardingjdbc-sample](https://github.com/liuyangming/shardingjdbc-sample/tree/issue-2902) contains both XA transactions and local transactions, because I verified the XA transaction scenario at the end, so the default configuration is an example of an XA transaction instead of a Local transaction. To change to a Local transaction, just adjust @Import(AtomikosConfiguration.class) to @Import(ShardingConfiguration.class) in the ShardingJdbcSampleBootstrap class. The ShardingConfiguration class explicitly defines a DataSourceTransactionManager that manages local transactions.
----------------------------------------------------------------
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:
users@infra.apache.org
With regards,
Apache Git Services