Everit - Transaction SpringTx Map JTA

Transactional Map implementation that enlists itself within a Spring PlatformTransaction if available.

License

License

GroupId

GroupId

org.everit.transaction
ArtifactId

ArtifactId

org.everit.transaction.map.springtx
Last Version

Last Version

1.0.0
Release Date

Release Date

Type

Type

bundle
Description

Description

Everit - Transaction SpringTx Map JTA
Transactional Map implementation that enlists itself within a Spring PlatformTransaction if available.
Project URL

Project URL

https://github.com/everit-org/transaction-map-springtx
Project Organization

Project Organization

Everit Kft.
Source Code Management

Source Code Management

https://github.com/everit-org/transaction-map-springtx

Download org.everit.transaction.map.springtx

Dependencies

compile (2)

Group / Artifact Type Version
org.springframework : spring-tx jar 5.0.9.RELEASE
org.everit.transaction : org.everit.transaction.map.api jar 1.0.0

test (8)

Group / Artifact Type Version
org.everit.transaction : org.everit.transaction.map.readcommited jar 1.0.0
org.slf4j : slf4j-simple jar 1.7.12
junit : junit jar 4.12
org.springframework : spring-context jar 5.0.9.RELEASE
org.springframework.boot : spring-boot-starter-jdbc jar 2.0.5.RELEASE
org.springframework : spring-test jar 5.0.9.RELEASE
org.springframework.boot : spring-boot-test jar 2.0.5.RELEASE
com.h2database : h2 jar 1.4.197

Project Modules

There are no modules declared in this project.

transaction-map-spring

Transactional Map implementation based on Spring PlatformTransaction

Usage

The example above uses the ReadCommited Transactional Map implementation.

// Passing null will use a HashMap inside the TransactionalMap
Map<String, String> managedMap = new SpringTxMap<>(
    new ReadCommitedTransactionalMap<>(null));

// This map can be used anytime. If there is an ongoing Spring transaction
// ongoing, the map will synchronize itself and commit/rollback when the 
// transaction ends. That is all!
org.everit.transaction

Everit Kft.

Open source projects of Everit Kft.

Versions

Version
1.0.0