TransactionManager - Types

PlatformTransactionManager

  • imperative transactions

ReactiveTransactionManager

  • reactive transactions

@Transactional commonly works with thread-bound transactions managed by PlatformTransactionManager, exposing a transaction to all data access operations within the current execution thread. Note: This does not propagate to newly started threads within the method.

A reactive transaction managed by ReactiveTransactionManager uses the Reactor context instead of thread-local attributes. As a consequence, all participating data access operations need to execute within the same Reactor context in the same reactive pipeline

TransactionManager - Code Examples

Resources