shardingsphere icon indicating copy to clipboard operation
shardingsphere copied to clipboard

xa transactions seting

Open jie04baichi opened this issue 7 years ago • 5 comments

Question

Our current sharding.jdbc.datasource is logically the same data source, such as (sub-database ds-0, ds-1), which itself supports transaction rollback between sub-libraries? If want to use xa transactions, must to have two sets of logical data sources?

jie04baichi avatar Dec 13 '18 01:12 jie04baichi

hi,we can adapter normal physical datasource to xa transactional datasource witin sharding datasource,so there is no need to change your original setting. also we can provide @sharding transactional and api to switch transaction type as you like. these feature will add in document later

cherrylzhao avatar Dec 13 '18 02:12 cherrylzhao

hi,we can adapter normal physical datasource to xa transactional datasource witin sharding datasource,so there is no need to change your original setting. also we can provide @sharding transactional and api to switch transaction type as you like. these feature will add in document later

cherrylzhao avatar Dec 13 '18 02:12 cherrylzhao

hi,we can adapter normal physical datasource to xa transactional datasource witin sharding datasource,so there is no need to change your original setting. also we can provide @sharding transactional and api to switch transaction type as you like. these feature will add in document later

I am puzzled that sharding-jdbc 3.0.0 version now supports cross-database transactions, why need this xa transaction?*

jie04baichi avatar Dec 13 '18 02:12 jie04baichi

now local transaction is weak XA transaction,please see the document which cannot support scenario

cherrylzhao avatar Dec 13 '18 02:12 cherrylzhao

ok,thanks!

jie04baichi avatar Dec 13 '18 02:12 jie04baichi