Notes on using GTS in a private network-based test environment of SAE

Updated at: 2024-09-03 00:02

If you use Global Transaction Service (GTS) in a private network-based test environment of Serverless App Engine (SAE) (online production environment), you must set the URL parameter to https://cs2.gts.aliyuncs.com.

txc-client.jar

If you use txc-client.jar to configure an SAE environment, configure the URL parameter based on the following sample code:

<bean class="com.taobao.txc.client.aop.TxcTransactionScaner">
        <constructor-arg value="myapp"/><!-- Custom identifier of an application -->
        <constructor-arg value="mygroup.xxxx.xx"/><!-- Full name of a transaction group -->
        <constructor-arg type="int" value="1"/>
        <constructor-arg value="https://cs2.gts.aliyuncs.com"/>
        <property name="accessKey" value="xxx"/>
        <property name="secretKey" value="xxx"/>
</bean>

txc-client-springcloud.jar

If you use txc-client-springcloud.jar to configure an SAE environment, add spring.cloud.txc.url=https://cs2.gts.aliyuncs.com to the properties configuration file.

  • On this page (1, T)
  • txc-client.jar
  • txc-client-springcloud.jar
Feedback
phone Contact Us

Chat now with Alibaba Cloud Customer Service to assist you in finding the right products and services to meet your needs.

alicare alicarealicarealicare