transactionmanager Questions
3
Solved
I have Spring Boot project with 2 database configs.
Primary DB config:
@Configuration
@EnableTransactionManagement
@EnableJpaRepositories(transactionManagerRef = "primaryTransactionManager", ent...
Nanananak asked 24/1, 2018 at 14:10
6
Solved
EDIT: to whoever may be in interested in this issue, I provide the analysys of the problem with the related solution at the end of the question.
I am configuring a module for a web application in ...
Endorsed asked 28/2, 2013 at 19:9
1
Solved
What is the difference between org.springframework.jdbc.datasource.DataSourceTransactionManager
and org.springframework.batch.support.transaction.ResourcelessTransactionManager
<bean id=&qu...
Argot asked 24/5, 2019 at 6:42
4
I have to update two data sources as part of one transaction. That is -
I do an update in DB1.
Then, I do another update in DB2.
If update in DB2 fails, I want to roll back both DB1 and DB2 to ...
Tui asked 23/2, 2018 at 19:15
2
Solved
what is the difference between TransactionManagementType.CONTAINER and TransactionManagementType.BEAN
as Im using TransactionManagementType.CONTAINER in all of my EJBs and when ever the multiple i...
Iraidairan asked 9/6, 2017 at 13:11
2
Solved
I am running a Pyramid + Zope transaction manager + SQLAlchemy + PostgreSQL. On some occasions, I have seen StaleDataError error on a Pyramid web application which should very trivial view of updat...
Hg asked 10/6, 2015 at 18:4
1
Solved
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 c...
Hakodate asked 22/4, 2016 at 12:28
3
Solved
I am trying to create Spring-based solution for running batch of SQL queries on MySQL 5.5 server.
By "query" I mean any SQL statement that compiles, so the SQL batch job can contain for example sev...
Grover asked 10/4, 2012 at 8:58
4
Solved
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:
userServic...
Lied asked 9/3, 2013 at 17:13
0
In my application, I need to use pure JDBC together with Guice. However, Guice doesn't provide any built-in support to manage transactions. guice-persist only provides support based on JPA, which I...
Franklin asked 4/2, 2015 at 9:10
2
Solved
Using Spring + Hibernate and transactional annotations.
I'm trying to test the following:
call a method that changes a User object then calls a @Transactional service method to persist it
read ...
Slat asked 27/10, 2014 at 21:48
5
NEW CONF:
i made some change to match with what you are saying.
now i deleted hibernate-cfg.xml and did all conf in spring-servlet.xml :
<jee:jndi-lookup id="ReferentielWebDevDataSource"
jndi-...
Coconut asked 7/5, 2013 at 10:52
1
When we can do transactions in hibernate through session, what is the need of HibernateTransactionManager again in Spring-hibernate integration?
What is the role of it?
Why can't we do transacti...
Falkirk asked 7/2, 2014 at 10:29
2
Solved
I have an existing application that uses the Hibernate SessionFactory for one database. We are adding another database for doing analytics. The transactions will never cross so I don't need JTA, bu...
Bailee asked 10/4, 2013 at 21:24
4
Solved
I try to write a transaction manager using JDBC in Spring.
my app-servlet.xml
<!-- JDBC Config -->
<bean id="dataSource"
class="org.apache.commons.dbcp.BasicDataSource"
destroy-metho...
Reversal asked 3/8, 2012 at 1:44
1
I found the following thread: How exactly JdbcTemplate with TransactionManager works together?
The first sentence of that:
As far as I understood DataSourceTransactionManager binds a JDBC conne...
Dusk asked 13/2, 2012 at 20:51
1
Solved
I'm not quite sure how to formulate the question, so feel free to tell me that I am thinking completly wrong.
I want to use the JdbcTemplate and the TransactionTemplate. I start of by initilizing ...
Onfre asked 28/8, 2011 at 11:53
2
Solved
I'm new to Spring and I'm wondering if its possible to use numerous transaction managers in the same application?
I have two data access layers - one for both of the databases. I'm wondering, how ...
Handwork asked 12/12, 2010 at 18:10
5
Solved
Basically, what it says on the tin; I need a JTA implementation useable in a Java SE application, ideally one that doesn't carry too much of a framework burden with it.
Eliott asked 22/4, 2009 at 14:57
1
© 2022 - 2024 — McMap. All rights reserved.