From d630f5889d74d98b9cf8a3b4357cc3f7798fae31 Mon Sep 17 00:00:00 2001 From: liuyangming Date: Wed, 7 Jun 2017 13:11:29 +0800 Subject: [PATCH] release 0.4.0-alpha --- README.md | 40 ++++++++++++++++++++++++++++++++++ bytejta-core/pom.xml | 2 +- bytejta-supports-dubbo/pom.xml | 2 +- bytejta-supports/pom.xml | 2 +- pom.xml | 8 +++---- 5 files changed, 47 insertions(+), 7 deletions(-) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..8b4f8c9 --- /dev/null +++ b/README.md @@ -0,0 +1,40 @@ +ByteJTA是一个基于XA/2PC机制的分布式事务管理器。实现了JTA接口,可以很好的与EJB、Spring等容器(本文档下文说明中将以Spring容器为例)进行集成。 + +## 一、快速入门 +#### 1.1. 加入maven依赖 +```xml + + org.bytesoft + bytejta-supports-dubbo + 0.4.0-alpha + +``` +#### 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向我反馈。本人承诺,任何建议都将会被认真考虑,优秀的建议将会被采用,但不保证一定会在当前版本中实现。 diff --git a/bytejta-core/pom.xml b/bytejta-core/pom.xml index 436d2f6..db1190d 100644 --- a/bytejta-core/pom.xml +++ b/bytejta-core/pom.xml @@ -5,7 +5,7 @@ org.bytesoft bytejta-parent - 0.4.0-SNAPSHOT + 0.4.0-alpha bytejta-core jar diff --git a/bytejta-supports-dubbo/pom.xml b/bytejta-supports-dubbo/pom.xml index 7b1f6cb..d4e75ff 100644 --- a/bytejta-supports-dubbo/pom.xml +++ b/bytejta-supports-dubbo/pom.xml @@ -5,7 +5,7 @@ org.bytesoft bytejta-parent - 0.4.0-SNAPSHOT + 0.4.0-alpha bytejta-supports-dubbo jar diff --git a/bytejta-supports/pom.xml b/bytejta-supports/pom.xml index 89a51ce..ae56f31 100644 --- a/bytejta-supports/pom.xml +++ b/bytejta-supports/pom.xml @@ -5,7 +5,7 @@ org.bytesoft bytejta-parent - 0.4.0-SNAPSHOT + 0.4.0-alpha bytejta-supports jar diff --git a/pom.xml b/pom.xml index 2008b59..2c27002 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ org.bytesoft bytejta-parent - 0.4.0-SNAPSHOT + 0.4.0-alpha pom bytejta-parent ByteJTA is a XA-complicant transaction manager. @@ -84,17 +84,17 @@ org.bytesoft bytejta-core - 0.4.0-SNAPSHOT + 0.4.0-alpha org.bytesoft bytejta-supports - 0.4.0-SNAPSHOT + 0.4.0-alpha org.bytesoft bytejta-supports-dubbo - 0.4.0-SNAPSHOT + 0.4.0-alpha