You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by "WXingSong (via GitHub)" <gi...@apache.org> on 2024/06/14 12:15:45 UTC

[I] How to use BASE transaction with seata? [shardingsphere]

WXingSong opened a new issue, #31703:
URL: https://github.com/apache/shardingsphere/issues/31703

   version:
   Sharding-jdbc:  5.5.0
   Seata: 2.0.0
   
   I use transactions based on the JAVA API, but the interface remotely called by feign cannot obtain the xid, which prevents the transaction from being rolled back.
   
   `
   Connection connection = dataSource.getConnection();
   try {
     connection.setAutoCommit(false);
     seataTest1Mapper.insert(data1);
     seataTest2Mapper.insert(data2);
     seataTestApi.saveSeataTest3();
   } catch (Exception e) {
     connection.rollback();
   }
   `
   
   How can I easily use Seata AT 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.

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

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


Re: [I] How to use BASE transaction with seata? [shardingsphere]

Posted by "terrymanu (via GitHub)" <gi...@apache.org>.
terrymanu closed issue #31703: How to use BASE transaction with seata?
URL: https://github.com/apache/shardingsphere/issues/31703


-- 
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-unsubscribe@shardingsphere.apache.org

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


Re: [I] How to use BASE transaction with seata? [shardingsphere]

Posted by "WXingSong (via GitHub)" <gi...@apache.org>.
WXingSong commented on issue #31703:
URL: https://github.com/apache/shardingsphere/issues/31703#issuecomment-2205049192

   This is my demo https://github.com/WXingSong/sharding-seata-simple-demo.git @linghengqian 
   The same problem with #31715. Perform unit testing on the Seata integration module of ShardingSphere in the multi-microservice scenario.


-- 
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-unsubscribe@shardingsphere.apache.org

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