Hi

Please send mail to [email protected] 
<mailto:[email protected]>, we’ll check it everyday.

You should set transaction type before datasource.getConnection, or you can use 
our @TransactionType annotation integrated with spring.

Example is here:
https://github.com/apache/incubator-shardingsphere-example/tree/dev/sharding-jdbc-example/transaction-example/transaction-2pc-xa-example
 
<https://github.com/apache/incubator-shardingsphere-example/tree/dev/sharding-jdbc-example/transaction-example/transaction-2pc-xa-example>


On 2019/06/06 09:47:20, 空白 <[email protected]> wrote: 
> I refer to the introduction of distributed transactions on the official 
> website。> 
> 
> 
> 
> 
> But when i use sharding-jdbc transaction ,the transactionType is always 
> LOCAL。Although I set transactionType = XA, in the doBegin() method of the 
> TransactionManager, the transaction level is cleared as LOCAL before the 
> connection is obtained.> 
> 
> 
> 
> 
> How to solve this problem.> 
> My English is poor. I'm sorry. I hope I can express myself clearly. I hope I 
> can get your help. Thank you.> 
> 
> 
> | |> 
> 未完成交响曲> 
> |> 
> |> 
> [email protected]> 
> |> 
> 签名由网易邮箱大师定制> 
> 
>  

------------------
Zhao Jun
Apache Sharding-Sphere & ServiceComb

Reply via email to