Multiple database transaction management in spring boot 3.0

1.2k Views Asked by At

Hi I have two different database and I need distributed transaction for my process.

Chained transaction manager is deprecated (https://github.com/spring-projects/spring-data-commons/issues/2232)

And after spring boot 3.0 ,spring doesnt support jta solution like atomikos

(https://github.com/atomikos/transactions-essentials/issues/175) (https://github.com/spring-projects/spring-boot/issues/20809) So with spring boot 3.0 what is the best way to manage distributed transaction management

1

There are 1 best solutions below

0
George On

The latest (6.0) version of atomikos TransactionEssentials claims to support Jakarta EE. So it should support springboot 3.

See here: https://github.com/atomikos/transactions-essentials/blob/master/README.md

You can give it a try with springboot 3 with this starter: https://mvnrepository.com/artifact/com.atomikos/transactions-spring-boot3-starter/6.0.0