roodkcab edited a comment on issue #12771:
URL: 
https://github.com/apache/shardingsphere/issues/12771#issuecomment-939242311


   I've successfully run full xa transaction in proxy, and here's what I've done
   
   1、add XA statement support,including
   ```
   xa start/begin 'xxxx';
   xa end 'xxxx';
   xa prepare 'xxxx';
   xa commit 'xxxx';
   xa rollback 'xxxx';
   ```
   
   2、 get  distribution transaction  done by using shardingsphere transaction 
manager, the default one is Atomikos. 
   when sending  ```xa start``` statement to proxy, we call begin function in 
JTA.
   shardingsphere will trigger a ```xa start``` on backend database on any 
other SQL got received. 
   for ```xa end``` and ```xa prepare``` statement, both of them could be 
simply ignored.
   for ```xa commit``` and ```xa rollback``` we call commit and rollback 
respectively in JTA,
   
   
   
   


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

To unsubscribe, e-mail: notifications-unsubscr...@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to