cherrylzhao commented on issue #1694: Refactor design of sharding transaction 2PC XA URL: https://github.com/apache/incubator-shardingsphere/issues/1694#issuecomment-454670244 hi, zhfeng >Why does it introduce the SingleXAResource ? >Why does it need the enlistResource method ? Although I think in the different vendor, the >implementation could be similar here just like >TransationMangager.getCurrentTransaction().enlist(xaResource); `SingleXAResource` has the resourceName associated with registered recovery resource. usually JTA manager vendor have provided their owed XA transactional datasource pool to encapsulate process of `XAResource enlist`, we can enlist XAResource manually within sharding-sphere TransactionEngine layer. you can see more detail in `XAShardingTransactionEngine.getConnection`
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on 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
