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
2
votes
0 answers

Spring Batch JpaTransactionManager will affect Spring Data JPA?

If I override and use JpaTransactionManager with Spring Batch will it affect Spring Data JPA? What is the difference between Spring Batch Transaction Manager vs Spring Data JPA? Is there any connection between them? And If I use the following…
2
votes
1 answer

Spring DataSourceTransactionManager does not commit

I think my transaction manager does not work at all. On insert to the database auto-increment value increases, but no new data added. I define transaction manager, jdbc template and data source programmatically. Transaction…
bovae
  • 312
  • 3
  • 12
2
votes
3 answers

Tomcat 8 Connection has been abandoned

First time posting question. Thanks all! The issue I have is been around for a while and we couldn't find a solution for that. In short, application build using Java 8, Spring, Hibernate, PostgreSQL, JSF (PrimeFaces here), Webflow. The problem…
2
votes
1 answer

Spring to automatically open another transactionManager?

I have two Databases , with two sets of spring configurations : The lower level is CORE db , the upper level is APP db . Each db has its persistenceUnit , entityManagerFactory , transactionManager , with the db name appended , such as…
smallufo
  • 11,516
  • 20
  • 73
  • 111
2
votes
0 answers

Proper way to configure Spring transaction manager on a multi-datasource scenario (hibernate 5.2.6)

After upgrading my application to hibernate 5.2.6 (was 5.0) and spring-core to 4.3.6 I started having tons of the infamous "Could not obtain transaction-synchronized Session for current thread" Hibernate exception. 15:13:36,907 ERROR…
tggm
  • 973
  • 2
  • 15
  • 41
2
votes
1 answer
2
votes
0 answers

No externally managed transaction is currently active for this thread (only persistent queries !!)

Hello I have been working on a web application with Spring 4 and EclipseLink on GlassFish server . I use a wampserver for mySQL server and a connexion pool on GlassFish. Here is my persistence.xml
2
votes
0 answers

Spring Batch combined with Atomikos not working

I’m having trouble configuring an Tomcat – Spring Batch – Atomikos combination. I have configured the following (I’m not mentioning the JMS configuration) Atomikos DataSource (proxy) based on com.atomikos.tomcat.EnhancedTomcatAtomikosBeanFactory…
2
votes
2 answers

Spring Batch with two databases

I have a Spring Batch application that uses two databases. One for the job repository and a database that contains business data. At the moment I am using two different transaction managers for these datasources, but some guys at my company suggest…
pesche666
  • 139
  • 1
  • 13
2
votes
1 answer

Using multiple transaction managers with hibernate-spring integration (annotation-based)

I am working on a project which needs to connect to one database of oracle and read some data from tables and then after summarizing the data puts them in a second database of mysql. I need to use transaction managers for this project. So I did…
2
votes
0 answers

Unable to lookup: java:/TransactionManager - Unable to instantiate legacy transaction manager

i have a problem when i start in debug my application server (JBoss EAP 6.1). When it start, in console i have this information in DEBUG: 15:50:46,530 DEBUG [org.jboss.tm.TransactionManagerLocator] (MSC service thread 1-7) Unable to lookup:…
Luca
  • 21
  • 3
2
votes
1 answer

Spring taking long time to return cached instance of singleton bean - transactionManager

All API call are taking long time to respond because, spring is taking long time to return cached instance of singleton bean - transactionManager. Please see log, this behaviour is consistent for each request. 2 014-09-24 08:09:02,239 DEBUG…
Darshan
  • 39
  • 2
  • 4
2
votes
1 answer

Error on setting "user-type" type: org.jadira.usertype.dateandtime.joda.PersistentDateTime

I am new on Grails (2.4.1). I am trying to use joda time (1.5). When I put the script below to my Config.groovy an error occurrs. grails.gorm.default.mapping = { "user-type" type: org.jadira.usertype.dateandtime.joda.PersistentDateTime, class:…
2
votes
2 answers

NoSuchBeanDefinitionException : No bean named 'transactionManager' is defined

I'm developping an application using spring and hibernate. When I run my application I get this error message: org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'transactionManager' is defined In my context application…
Renaud is Not Bill Gates
  • 1,684
  • 34
  • 105
  • 191
2
votes
1 answer

Trying to persist to an oracle db using hibernate 4 and spring 3 without success. Tests pass but data not persisted.

I am trying to implement a simple DAO using hibernate 4 and Spring 3. When I try to save or delete a row in the db the transaction is not persisted. I have included some code to show how the saving in the db doesnt work: I have a junit test which…
PolyglotPiglet
  • 279
  • 2
  • 12
1 2
3
10 11