Skip to content

Commit

Permalink
update dubbo-tcc-sample dubbo version and disable qos (apache#335)
Browse files Browse the repository at this point in the history
  • Loading branch information
horoc authored Apr 17, 2020
1 parent af446c6 commit 499445e
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tcc/dubbo-tcc-sample/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<properties>
<curator.version>4.2.0</curator.version>
<dubbo.springboot.starter.version>1.0.0</dubbo.springboot.starter.version>
<dubbo.version>2.7.0</dubbo.version>
<dubbo.version>2.7.3</dubbo.version>
</properties>

<dependencies>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public static void main(String[] args) throws Exception {
ClassPathXmlApplicationContext applicationContext = new ClassPathXmlApplicationContext(
new String[] {"spring/seata-tcc.xml", "spring/seata-dubbo-reference.xml"});

tccTransactionService = (TccTransactionService) applicationContext.getBean("tccTransactionService" );
tccTransactionService = (TccTransactionService) applicationContext.getBean("tccTransactionService");

//分布式事务提交demo
transactionCommitDemo();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@
http://code.alibabatech.com/schema/dubbo
http://code.alibabatech.com/schema/dubbo/dubbo.xsd" default-autowire="byName">

<dubbo:application name="tcc-sample"/>
<dubbo:application name="tcc-sample">
<dubbo:parameter key="qos.enable" value="false"/>
</dubbo:application>
<!--使用 zookeeper 注册中心暴露服务,注意要先开启 zookeeper-->
<dubbo:registry address="zookeeper://127.0.0.1:2181"/>
<!--<dubbo:registry address="multicast://224.5.6.7:1234?unicast=false" />-->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@
http://code.alibabatech.com/schema/dubbo
http://code.alibabatech.com/schema/dubbo/dubbo.xsd" default-autowire="byName">

<dubbo:application name="tcc-sample-reference"/>
<dubbo:application name="tcc-sample-reference">
<dubbo:parameter key="qos.enable" value="false"/>
</dubbo:application>

<!--使用 zookeeper 注册中心暴露服务,注意要先开启 zookeeper-->
<dubbo:registry address="zookeeper://127.0.0.1:2181"/>
<!--<dubbo:registry address="multicast://224.5.6.7:1234?unicast=false" />-->
Expand Down

0 comments on commit 499445e

Please sign in to comment.