Top "Spring-transactions" questions

Questions related to Spring's Transaction API (programmatic or declarative)

Why do spring/hibernate read-only database transactions run slower than read-write?

I've been doing some research around the performance of read-only versus read-write database transactions. The MySQL server is remote across …

java spring hibernate database-performance spring-transactions
MyBatis-Spring setup not using transactions

I have a web application set up with MyBatis and Spring, but it doesn't seem to be using any transactions. …

spring transactions ibatis mybatis spring-transactions
Spring's TransactionInterceptor overrides my Exception

I have a DAO class catching the javax.persistence.PersistenceException wrapping them and rethrowing it as a checked exception. This …

spring hibernate spring-transactions
Spring Transaction Manager: Rollback doesnt work

I wish to execute few insert queries within a transaction block where if there is any error all the inserts …

spring transactions spring-transactions transactionmanager
How to configure mutliple transaction managers with Spring + DBUnit + JUnit

In a nutshell My command line Java application copies data from one datasource to another without using XA. I have …

spring junit dbunit spring-transactions
Do we need both @Transactional and @Modifying annotation in Spring?

I am still trying to wrap my head around how @Transactional works. I have @Transactional annotation on Service class's method …

java spring transactions spring-transactions
Continue with transaction after exception - JPA

I am using JPA with Spring. I am trying to do batch import. If there is problem with batch import …

java spring hibernate jpa spring-transactions
setting isolation level in spring annotation-based transactions

I use in my project annotation-based transaction management (I annotate some methods with @Transactional). I would like to set the …

spring isolation-level spring-transactions
Difference between JTA and Spring @Transactional annotations

I've been starting to use Spring's @Transactional annotation, and it provides a lot of convenience for managing transactions. However, using …

jakarta-ee transactions annotations jta spring-transactions
Why doesn't Spring's @Transactional work on protected methods?

From Does Spring @Transactional attribute work on a private method? When using proxies, you should apply the @Transactional annotation only …

java spring spring-transactions