Top "Spring-transactions" questions

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

How to set autocommit to false in spring jdbc template

Currently I'm setting autocommit to false in spring through adding a property to a datasource bean id like below : <…

spring spring-mvc spring-jdbc spring-transactions
java.lang.NoClassDefFoundError: org/apache/commons/pool/impl/GenericObjectPool

I'm trying to configure org.apache.commons.dbcp.BasicDataSource as bean in web.xml under a tomcat project using tomcat 6 …

java spring-mvc spring-transactions hibernate-annotations
Hibernate collection is not associated with any session

I have found several questions and answers with regard to this issue on SO, but they all seem to cover …

java spring hibernate spring-transactions
How to execute custom SQL query with spring-managed transactional EntityManager

I have an application built on Spring. I let the Spring do the all @Transactional magic and everything works fine …

java spring jpa spring-transactions
Roll back A if B goes wrong. spring boot, jdbctemplate

I have a method, 'databaseChanges', which call 2 operations: A, B in iterative way. 'A' first, 'B' last. 'A' & 'B' …

java oracle spring-boot jdbctemplate spring-transactions
How to flush data into db inside active spring transaction?

I want to test hibernate session's save() method using spring testing framework. @Test method is : @Test @Transactional public void testSave() { …

java hibernate spring-transactions spring-test hibernate-session
Spring nested transactions

In my Spring Boot project I have implemented following service method: @Transactional public boolean validateBoard(Board board) { boolean result = false; …

spring spring-boot spring-data spring-data-jpa spring-transactions
Spring Transactions and hibernate.current_session_context_class

I have a Spring 3.2 application that uses Hibernate 4 and Spring Transactions. All the methods were working great and I could …

spring hibernate spring-transactions hibernate-session
Setting Up Annotation Driven Transactions in Spring in @Configuration Class

So in the latest version of Spring we are able to use the @Configuration annotation to setup our configurations for …

java spring configuration transactions spring-transactions
Transaction management with Spring Batch

I am discovering actually Spring and I am able to setup some jobs. Now, I would like to save my …

java spring jpa spring-batch spring-transactions