Skip to content

Commit 00a7528

Browse files
committed
添加 motan rpc框架支持
1 parent ab34c25 commit 00a7528

3 files changed

Lines changed: 28 additions & 5 deletions

File tree

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
## 框架特点
1111

1212
1. 支持各种基于spring的db框架
13-
2. 兼容SpringCloud、Dubbo
13+
2. 兼容SpringCloud、Dubbo、motan
1414
3. 使用简单,低依赖,代码完全开源
1515
4. 基于切面的强一致性事务框架
1616
5. 高可用,模块可以依赖Dubbo或SpringCloud的集群方式做集群化,TxManager也可以做集群化
@@ -29,6 +29,8 @@ transaction-dubbo LCN dubbo rpc框架扩展支持
2929

3030
transaction-springcloud LCN springcloud rpc框架扩展支持
3131

32+
transaction-motan LCN motan rpc框架扩展支持
33+
3234
tx-client 是LCN核心tx模块端控制框架
3335

3436
tx-manager 是LCN 分布式事务协调器
@@ -85,7 +87,7 @@ tx-plugins-redis 是LCN 对于redis模块的插件支持(功能暂未实现)
8587

8688
若存在业务方法:a->b b->c b->d,那么开启分布式事务注解的话,只需要在a方法上添加@TxTransaction即可。
8789

88-
```java
90+
```
8991
@TxTransaction
9092
@Transactional
9193
public void a(){

pom.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,11 @@
1616

1717
<module>transaction-dubbo</module>
1818
<module>transaction-springcloud</module>
19+
<module>transaction-motan</module>
20+
1921
<module>tx-plugins-db</module>
2022
<module>tx-plugins-nodb</module>
2123
<module>tx-plugins-redis</module>
22-
<module>transaction-motan</module>
2324
</modules>
2425

2526
<properties>

transaction-motan/pom.xml

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
55
<modelVersion>4.0.0</modelVersion>
66

7-
8-
<artifactId>transaction-motan</artifactId>
97
<groupId>com.codingapi</groupId>
8+
<artifactId>transaction-motan</artifactId>
109
<version>1.0.0</version>
1110

1211
<name>transaction-motan</name>
12+
<url>https://github.com/codingapi/tx-lcn</url>
1313

1414
<description>transaction-dubbo project for Spring Boot</description>
1515

@@ -31,6 +31,26 @@
3131
</developer>
3232
</developers>
3333

34+
<scm>
35+
<connection>scm:git:https://github.com/codingapi/tx-lcn.git</connection>
36+
<developerConnection>scm:git:https://github.com/codingapi/tx-lcn.git</developerConnection>
37+
<url>https://github.com/codingapi/tx-lcn</url>
38+
<tag>v${project.version}</tag>
39+
</scm>
40+
41+
<distributionManagement>
42+
<snapshotRepository>
43+
<id>ossrh</id>
44+
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
45+
</snapshotRepository>
46+
<repository>
47+
<id>ossrh</id>
48+
<name>Maven Central Staging Repository</name>
49+
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
50+
</repository>
51+
</distributionManagement>
52+
53+
3454

3555
<properties>
3656
<maven.compile.source>1.7</maven.compile.source>

0 commit comments

Comments
 (0)