Questions tagged [transactionmanager]

A transaction manager is the part of an application that is responsible for coordinating transactions across one or more resources.

A transaction manager is the part of an application that is responsible for coordinating transactions across one or more resources. The concept of transaction manager is common to many persistence frameworks.

See:

164 questions
5
votes
1 answer

TransactionManager and datasource in spring boot - spring data

I wanted to access the Transaction Manager and datasource in my configuration in spring boot application. I am using spring-boot-starter-data-jpa artifact. Is it possible to just autowire in the config and get its access?
krmanish007
  • 6,749
  • 16
  • 58
  • 100
5
votes
4 answers

Why are the transactions rolled back even when propagation=Propagation.REQUIRES_NEW in second method in Spring service class?

Basic settings are all fine now and I started to try transactions. Struts+Spring+Hibernate annotation transaction manager. This is the sample code in Action, will call a service class: userService.addUser(); Here is the addUser() method in…
Aska
  • 65
  • 2
  • 6
5
votes
4 answers

Spring JDBC transaction manager

I try to write a transaction manager using JDBC in Spring. my app-servlet.xml
gencay
  • 609
  • 5
  • 14
  • 26
4
votes
0 answers

ormlite for android: design help and more

It's a few months that I started developing android application. I have worked for about two years with Spring framework and Hibernate. So, searching for an ORM tool for android I found the ormlite project. I found it very interesting and I decided…
gipinani
  • 14,038
  • 12
  • 56
  • 85
4
votes
3 answers

Spring Boot with 2 database configs - lazy loading with second config does not work

I have Spring Boot project with 2 database configs. Primary DB config: @Configuration @EnableTransactionManagement @EnableJpaRepositories(transactionManagerRef = "primaryTransactionManager", entityManagerFactoryRef = "primaryEntityManagerFactory",…
4
votes
1 answer

java.lang.StackOverflowError error when using Spring Batch with JtaTransactionManager

I'm tring to use JtaTransactionManager with Spring Batch. transactionManager is the Jta transaction manager that has been defined in the dependency project. This is my Spring batch config: @Configuration @EnableBatchProcessing public class…
4
votes
1 answer

Alternative of @Transactional annotation

What is the alternative of rollback transaction in spring except @Transactional annotation. I have used this annotation but i want the way by which i can rollback transaction in catch block. Is there any way? Thanx in advance.
4
votes
2 answers

Spring data - two different data sources on the same transaction causing abnormality

We are using atomikos JTA with spring and 2 different mysql datasources. We got a problem, When we use two different repositories (of 2 different datasources) on the same @Transactional method we get an error: Caused by: java.sql.SQLException:…
Urbanleg
  • 6,252
  • 16
  • 76
  • 139
4
votes
2 answers

Two entity managers in Spring

I had done this programmatically at some point - that is creating two entity managers with different data sources and providing them for different services. However now I am building a webApp using Spring. Thing is that I want to have two entity…
Xeperis
  • 1,449
  • 2
  • 25
  • 41
3
votes
0 answers

Spring Transaction - can't release Transaction after error

I'm using Spring-tx-4.0.9 in a multithreaded application and have a problem with "stalled" transaction after the thread is killed by OutOfMemory. Each thread ask PlatformTransactionManager (implementation…
3
votes
1 answer

Procedures in Transactions called from EJB getting ARJUNA016051: thread is already associated with a transaction! in JBoss AS 7.1

This is related to Jboss AS 7.1, we have been using this to create an EJB for one of our applications, Our application architecture is such that, all business logic is there in Stored Procedures where in we call the stored procedures from the EJB's,…
kashipai
  • 149
  • 3
  • 13
3
votes
2 answers

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 will be rolled back. I am using MySQL database and Spring TransactionManager for this. Also the table type is InnoDB I have done my…
DarkKnightFan
  • 1,913
  • 14
  • 42
  • 61
2
votes
1 answer

Transaction not active exception - EJB Transaction State

I am having a problem with EJB components that are responsible for starting a transaction. I am using Jboss 5.01. Basically I would like to execute a given code after a specific transaction was committed. the specific code also involves calling an…
Yaniv Cohen
  • 379
  • 1
  • 7
  • 20
2
votes
0 answers

Commit/rollback transactions manually with multiple datasources in Micronaut

I need to commit/rollback transactions manually with multiple datasources in micronaut-data. But when commits second transaction(db2TransactionManager.commit(db2Transaction)) it throws below exception. How can I solve this problem or is there any…
nikli
  • 2,281
  • 2
  • 24
  • 38
1
2
3
10 11