Skip to content

Commit

Permalink
Feature/fix user guide (#458)
Browse files Browse the repository at this point in the history
* change OmegaContext to docs/user_guide.md

* change OmegaContext package to docs/user_guide_zh.md

* change docs/user_guide.md in OmegaContext package
  • Loading branch information
cmonkey authored and WillemJiang committed May 8, 2019
1 parent 29cc928 commit e62da68
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/user_guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ Take a transfer money application as an example:

4. Repeat step 2 for the `transferIn` service.

5. Since pack-0.3.0, you can access the [OmegaContext](https://github.com/apache/servicecomb-packblob/master/omega/omega-context/src/main/java/org/apache/servicecomb/saga/omega/context/OmegaContext.java) for the gloableTxId and localTxId in the @Compensable annotated method or the cancel method.
5. Since pack-0.3.0, you can access the [OmegaContext](https://github.com/apache/servicecomb-pack/blob/master/omega/omega-context/src/main/java/org/apache/servicecomb/pack/omega/context/OmegaContext.java) for the gloableTxId and localTxId in the @Compensable annotated method or the cancel method.

### TCC support
Add TCC annotations and corresponding confirm and cancel methods
Expand Down Expand Up @@ -431,4 +431,4 @@ Uses Spring Cloud Netflix 2.x by default, if you want to use Spring Cloud Netfli

## Cluster

Alpha can be highly available by deploying multiple instances, enable cluster support with the `alpha.cluster.master.enabled=true` parameter.
Alpha can be highly available by deploying multiple instances, enable cluster support with the `alpha.cluster.master.enabled=true` parameter.
4 changes: 2 additions & 2 deletions docs/user_guide_zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ Saga可通过以下任一方式进行构建:

4. 对转入服务重复第二步即可。

5. 从pack-0.3.0开始, 你可以在服务函数或者取消函数中通过访问 [OmegaContext](https://github.com/apache/servicecomb-pack/blob/master/omega/omega-context/src/main/java/org/apache/servicecomb/saga/omega/context/OmegaContext.java) 来获取 gloableTxId 以及 localTxId 信息。
5. 从pack-0.3.0开始, 你可以在服务函数或者取消函数中通过访问 [OmegaContext](https://github.com/apache/servicecomb-pack/blob/master/omega/omega-context/src/main/java/org/apache/servicecomb/pack/omega/context/OmegaContext.java) 来获取 gloableTxId 以及 localTxId 信息。

### TCC 支持
在对应的方法中添加TccStart 和 Participate标注
Expand Down Expand Up @@ -430,4 +430,4 @@ Saga可通过以下任一方式进行构建:

## 集群

Alpha 可以通过部署多实例的方式保证高可用,使用 `alpha.cluster.master.enabled=true` 参数开启集群支持
Alpha 可以通过部署多实例的方式保证高可用,使用 `alpha.cluster.master.enabled=true` 参数开启集群支持

0 comments on commit e62da68

Please sign in to comment.