Skip to content

Commit

Permalink
release 0.4.0-alpha
Browse files Browse the repository at this point in the history
  • Loading branch information
liuyangming committed Jun 7, 2017
1 parent d065b1d commit d630f58
Show file tree
Hide file tree
Showing 5 changed files with 47 additions and 7 deletions.
40 changes: 40 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
ByteJTA是一个基于XA/2PC机制的分布式事务管理器。实现了JTA接口,可以很好的与EJB、Spring等容器(本文档下文说明中将以Spring容器为例)进行集成。

## 一、快速入门
#### 1.1. 加入maven依赖
```xml
<dependency>
<groupId>org.bytesoft</groupId>
<artifactId>bytejta-supports-dubbo</artifactId>
<version>0.4.0-alpha</version>
</dependency>
```
#### 1.2. 编写业务服务
```java
@Service("accountService")
public class AccountServiceImpl implements IAccountService {

@Autowired
private JdbcTemplate jdbcTemplate;

@Transactional
public void increaseAmount(String accountId, double amount) throws ServiceException {
this.jdbcTemplate.update("update tb_account set amount = amount + ? where acct_id = ?", amount, acctId);
}

}
```

## 二、文档 & 样例
* 使用文档: https://github.com/liuyangming/ByteJTA/wiki
* 使用样例: https://github.com/liuyangming/ByteJTA-sample


## 三、ByteJTA特性
* 1、支持Spring容器的声明式事务管理;
* 2、支持多数据源、跨应用、跨服务器等分布式事务场景;
* 3、支持长事务;
* 4、支持dubbo服务框架;

## 四、建议及改进
若您有任何建议,可以通过1)加入qq群537445956向群主提出,或2)发送邮件至bytefox@126.com向我反馈。本人承诺,任何建议都将会被认真考虑,优秀的建议将会被采用,但不保证一定会在当前版本中实现。
2 changes: 1 addition & 1 deletion bytejta-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>org.bytesoft</groupId>
<artifactId>bytejta-parent</artifactId>
<version>0.4.0-SNAPSHOT</version>
<version>0.4.0-alpha</version>
</parent>
<artifactId>bytejta-core</artifactId>
<packaging>jar</packaging>
Expand Down
2 changes: 1 addition & 1 deletion bytejta-supports-dubbo/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>org.bytesoft</groupId>
<artifactId>bytejta-parent</artifactId>
<version>0.4.0-SNAPSHOT</version>
<version>0.4.0-alpha</version>
</parent>
<artifactId>bytejta-supports-dubbo</artifactId>
<packaging>jar</packaging>
Expand Down
2 changes: 1 addition & 1 deletion bytejta-supports/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>org.bytesoft</groupId>
<artifactId>bytejta-parent</artifactId>
<version>0.4.0-SNAPSHOT</version>
<version>0.4.0-alpha</version>
</parent>
<artifactId>bytejta-supports</artifactId>
<packaging>jar</packaging>
Expand Down
8 changes: 4 additions & 4 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<groupId>org.bytesoft</groupId>
<artifactId>bytejta-parent</artifactId>
<version>0.4.0-SNAPSHOT</version>
<version>0.4.0-alpha</version>
<packaging>pom</packaging>
<name>bytejta-parent</name>
<description>ByteJTA is a XA-complicant transaction manager.</description>
Expand Down Expand Up @@ -84,17 +84,17 @@
<dependency>
<groupId>org.bytesoft</groupId>
<artifactId>bytejta-core</artifactId>
<version>0.4.0-SNAPSHOT</version>
<version>0.4.0-alpha</version>
</dependency>
<dependency>
<groupId>org.bytesoft</groupId>
<artifactId>bytejta-supports</artifactId>
<version>0.4.0-SNAPSHOT</version>
<version>0.4.0-alpha</version>
</dependency>
<dependency>
<groupId>org.bytesoft</groupId>
<artifactId>bytejta-supports-dubbo</artifactId>
<version>0.4.0-SNAPSHOT</version>
<version>0.4.0-alpha</version>
</dependency>

<!-- logger -->
Expand Down

0 comments on commit d630f58

Please sign in to comment.