jta Questions
1
As we know Isolation and Atomicity are two different properties. Atomicity is the "all or nothing" property, either a transaction completes successfully or fails altogether. Atomicity is definetly ...
Agustinaah asked 30/4, 2017 at 18:0
2
I have an application which uses Spring, Hibernate and JTA.
We received a request with larger than expected data (10000 elements), general requests are 10-100 elements.
While processing this requ...
2
Solved
I got this problem for a while and can't figure out what I am doing wrong. Here is the context:
Spring 4.3.4.RELEASE
Spring-data-jpa 1.10.6.RELEASE
Hibernate 5.2.5.Final
I'm using wildfly 10, sta...
Exhume asked 17/1, 2017 at 23:54
1
I am using test annotation introduced in spring-boot 1.4.3 for my integration tests
@RunWith(SpringRunner.class)
@SpringBootTest
public class MyServiceIT { }
According to documentation, test con...
Janusfaced asked 28/1, 2017 at 17:35
2
Solved
I am trying to understand what is the difference between JTA, Spring and Bitronix?
What should I use for transactions in Hibernate persistence?
2
Solved
I'm using JPA EclipseLink 2.0 with Glassfish 3.1.2.2
I want to know if after I call
em.flush()
em.clear()
The objects are immediatly commited to the database. My problem is I'm doing so many ...
Gainly asked 29/11, 2016 at 23:27
1
Solved
I'm reading Java Persistence with Hibernate, and I found the following text.
Today, high-quality standalone JTA providers such as Bitronix (used for the example code of this book) and Atomikos a...
Iva asked 1/12, 2016 at 13:46
2
Solved
I just updated from Hibernate 4.2.19 to Hibernate 5.1.2. Of course, little it is to say that things are not going as planned. After solving several issues (among which JOIN FETCH had to be replaced...
Colum asked 14/11, 2016 at 15:45
3
Solved
Context is:
producer (JTA transaction PT) is both sending message to JMS queue and making DB update;
consumer (JTA transaction CT) listens on same queue and reads DB when message is received;
...
Promethean asked 30/1, 2013 at 1:17
1
Solved
Rest Endpoint
<jaxrs:server id="jaxrs"
address="http://127.0.0.1:8080/jaxrs">
<jaxrs:serviceBeans>
<ref component-id="service1" />
...
...
<ref component-id="serviceX"...
Sallyanne asked 3/5, 2016 at 6:5
5
I have two classes Role and Privilege with the relation ManyToMany. When adding a Privilege to a Role, and then calling saveOrUpdate(role), I get the exception below.
Here is the Role class:
@Entit...
Ind asked 17/4, 2011 at 16:52
4
Solved
What is the difference between JTA and a local transaction?
An example that shows when to use JTA and when to use a local transaction would be great.
Tenuto asked 4/3, 2012 at 5:58
1
Solved
I'm trying to set-up Bitronix in Spring Boot to use last resource gambit with non-XA datasource. Of course by default (autoconfiguration) data source does not participate in XA transaction.
It seem...
Woollen asked 22/1, 2016 at 15:11
2
The working configuration for the step in question is the following:
Step, Spring Batch Job Repository, and business repositories (using various datasources) all use a JTA transaction manager.
St...
Preselector asked 18/11, 2015 at 2:32
5
Solved
I am writing a javaEE application, using hibernate. The application will be running on multiple environments (dev, qa, prod etc.) & will have separate dbs's associated with each of them. I woul...
3
Solved
I'm trying to understand JTA and am using Bitronix as the Transaction Manager of choice (just for the sake of learning and understanding). I'm looking at the code inside the Bitronix reference guid...
Anatomical asked 29/6, 2012 at 17:17
3
Solved
I think this is a fairly common question: how to put my business logic in a global transaction in distributed systems environment? Cite an example, I have a TaskA containing couples of sub tasks:
...
Boyceboycey asked 20/3, 2012 at 22:0
4
Solved
I am building a testing application with JPA Hibernate 4.1.7 and Spring 3.1.3 on top.
I am getting a NPE at jta causing JPA EntityManager to fail, here is the stack trace
DEBUG TestContext - Ret...
Supportable asked 11/11, 2012 at 2:11
3
Solved
Is it possible to use a transaction in another thread?
Like pass a transaction created in thread A and then execute some logic in Thread B within the same transaction?
I have two queues and sepa...
Ferdinandferdinanda asked 6/5, 2015 at 14:20
3
We have an existing C++ application that we are going to gradually replace with a new Java-based system. Until we have completely reimplemented everything in Java we expect the C++ and Java to have...
Ovate asked 4/9, 2008 at 15:21
4
Solved
I have a springframework application in which I would like to add a transaction listener to a transaction which is currently in progress. The motivation is to trigger a post commit action which not...
Alley asked 18/3, 2011 at 20:33
1
Does CDI @Transactional(Transactional.TxType.REQUIRES_NEW) works when is called inside the same bean:
@Transactional
public void method1() {
for(...) {
method2();
}
}
@Transactional(Transactio...
Counterstroke asked 21/3, 2015 at 8:15
1
Solved
If JTA is an API, can I use Hibernate as an implementation of JTA?
I have an application with Spring and Hibernate and I wonder which framework should be responsible for transactions, Spring or H...
Chesterfield asked 31/1, 2015 at 16:27
1
Solved
I can't manage to prevent a transaction from rolling back after a RuntimeException.
My env is Spring 4.1 + Hibernate 3.6 + JTA (WebSphereUowTransactionManager) running on Websphere 8.0.
"doStu...
Desantis asked 22/1, 2015 at 13:51
2
Solved
I was confused by the fact that we can allow to use JTA transactions with a non-XA-datasource. Link to the documentation. So what is the difference between XA/non-XA datasources? Why should we use ...
Peltast asked 5/1, 2015 at 13:55
© 2022 - 2024 — McMap. All rights reserved.