Skip to content

Latest commit

 

History

History
41 lines (23 loc) · 1.01 KB

File metadata and controls

41 lines (23 loc) · 1.01 KB

Narayana Spring Boot example

Author: Gytis Trikleris Level: Intermediate Technologies: JTA, JMS, JPA, Spring Boot Summary: Demonstration of Narayana integration with Spring Boot

What is it?

This quickstart demonstrates Narayana integration with Spring Boot.

It uses JMS and JPA to demonstrate transactional behaviour. Also, there is a system crash and recovery demonstration available.

Requirements

All you need to build this project is Java 8.0 (Java SDK 1.8) or later and Maven 3.3.3 or later.

Usage

In your terminal navigate to the quickstart directory and execute one of the following scenarios:

  • Commit demonstration

    mvn clean spring-boot:run -Drun.arguments="commit,Test Value"

  • Rollback demonstration

    mvn clean spring-boot:run -Drun.arguments="rollback,Test Value"

  • System crash and recovery demonstration

    mvn clean spring-boot:run -Drun.arguments="crash,Test Value"

    mvn spring-boot:run -Drun.arguments="recovery"