Spring Boot Jta Atomikos Sample Save

spring-boot-jta-atomikos-sample

Project README

spring-boot-jta-atomikos-sample

spring-boot-jta-atomikos-sample

Description

This is a sample project using spring boot, jta, and atomikos to show how the Distributed Transaction work.

This project has two mysql dbs, db:atomikos_one keep the capital info, and db:atomikos_two keep the redpacket info. And the main testcase will transfer capital amount from capital account "1" to capital account "2", and transfer redpacket amount from redpacket account "2" to redpacket account "1" at the same time in one transaction.

How to run?

  1. git clone https://github.com/YihuaWanglv/spring-boot-jta-atomikos-sample.git
  2. import db script in folder "docs"
  3. import project into ide and run App.java or build project and run the jar
  4. visit utl:http://localhost:8082/save to see saveTest

Reference

Open Source Agenda is not affiliated with "Spring Boot Jta Atomikos Sample" Project. README Source: YihuaWanglv/spring-boot-jta-atomikos-sample
Stars
46
Open Issues
0
Last Commit
7 years ago
License

Open Source Agenda Badge

Open Source Agenda Rating