Tagged articles
4 articles
Page 1 of 1
Java Companion
Java Companion
Jan 30, 2026 · Backend Development

When @Transactional and TransactionTemplate Clash: How to Choose the Right Spring Transaction Management

This article examines Spring's three transaction management options—@Transactional, TransactionTemplate, and TransactionManager—explaining their mechanisms, common pitfalls such as internal method calls and timeout settings, and provides guidance on when to use each approach with concrete code examples.

BackendTransactionManagerspring
0 likes · 12 min read
When @Transactional and TransactionTemplate Clash: How to Choose the Right Spring Transaction Management
Java Companion
Java Companion
Jan 17, 2026 · Backend Development

6 Ways to Overcome the Limits of @Transactional in Spring

The article examines five scenarios where Spring's @Transactional annotation falls short—stock shortage, MQ messaging, batch processing, logging, and isolation/timeout settings—and demonstrates six practical techniques, including programmatic transactions, parameter tuning, transaction synchronizers, event listeners, manual transaction control, and propagation strategies, all backed by runnable demo code.

SpringBootevent-listenerjava
0 likes · 19 min read
6 Ways to Overcome the Limits of @Transactional in Spring
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
May 31, 2024 · Backend Development

Mastering Programmatic Transactions in Spring Boot 3.2.5

This tutorial explains how to use Spring Boot's programmatic transaction management—including TransactionTemplate, TransactionCallback, and PlatformTransactionManager—with detailed code examples, configuration tips, and rollback handling to improve data consistency and performance.

Programmatic TransactionSpring BootTransactionalOperator
0 likes · 7 min read
Mastering Programmatic Transactions in Spring Boot 3.2.5
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Aug 19, 2023 · Backend Development

Master Spring Boot Transaction Management with TransactionTemplate and PlatformTransactionManager

This guide explains Spring Boot's programmatic transaction management using TransactionTemplate, TransactionCallback, and PlatformTransactionManager, covering configuration, rollback handling, event listeners, and when to prefer programmatic versus declarative approaches, complete with code examples.

PlatformTransactionManagerSpring Bootbackend-development
0 likes · 8 min read
Master Spring Boot Transaction Management with TransactionTemplate and PlatformTransactionManager