You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by zh...@apache.org on 2022/07/23 16:04:44 UTC

[shardingsphere] branch master updated: Support transactions for spring-namespace (#19414)

This is an automated email from the ASF dual-hosted git repository.

zhangliang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git


The following commit(s) were added to refs/heads/master by this push:
     new 569c498043e Support transactions for spring-namespace (#19414)
569c498043e is described below

commit 569c498043e8af3c747d425608174edfc573b78d
Author: Guocheng Tang <to...@apache.org>
AuthorDate: Sun Jul 24 00:04:39 2022 +0800

    Support transactions for spring-namespace (#19414)
    
    * Support transactions for spring-namespace
    
    * remove error code
    
    * update
---
 .../src/main/resources/template/jdbc/resources/xml/application.ftl | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/examples/shardingsphere-example-generator/src/main/resources/template/jdbc/resources/xml/application.ftl b/examples/shardingsphere-example-generator/src/main/resources/template/jdbc/resources/xml/application.ftl
index 5e1bf4123ea..c80859fb0c1 100644
--- a/examples/shardingsphere-example-generator/src/main/resources/template/jdbc/resources/xml/application.ftl
+++ b/examples/shardingsphere-example-generator/src/main/resources/template/jdbc/resources/xml/application.ftl
@@ -142,6 +142,13 @@
         </#if>
         <props>
             <prop key="sql-show">true</prop>
+        <#if transaction=="xa-atomikos">
+            <prop key="xa-transaction-manager-type">Atomikos</prop>
+        <#elseif transaction=="xa-narayana">
+            <prop key="xa-transaction-manager-type">Narayana</prop>
+        <#elseif transaction=="xa-bitronix">
+            <prop key="xa-transaction-manager-type">Bitronix</prop>
+        </#if>
         </props>
     </shardingsphere:data-source>
 </beans>