Questions tagged [jta]

Java Transaction API (JTA) specifies standard Java interfaces between a transaction manager and the parties involved in a distributed transaction system: the resource manager, the application server, and the transactional applications.

JTA specifies standard Java interfaces between a transaction manager and the parties involved in a distributed transaction system: the resource manager, the application server, and the transactional applications.

1131 questions
7
votes
2 answers

How to manually commit a managed transaction

I was given an "API" in the form of a JAR to do some external accounting operations from my Java-Seam-Hibernate appplication. Internally, the API is an plain Hibernate application, using two independent data sources besides the one used from Seam…
vz0
  • 32,345
  • 7
  • 44
  • 77
7
votes
2 answers

use JTA transaction or not?

I am developing a J2EE application which is deployed on JBoss application server. The application is composed of an EJB 2.x component and a web component and is running on local computer or remote server. The database is either Oracle or SQL Server…
newguy
  • 5,668
  • 12
  • 55
  • 95
7
votes
2 answers

change jta transaction timeout from default to custom

I am using Atomikos for JTA transaction. I have following setting for JTA: UserTransactionImp userTransactionImp = new UserTransactionImp(); userTransactionImp.setTransactionTimeout(900); but when my code perform JTA transaction, then if it takes…
Manglesh
  • 520
  • 1
  • 13
  • 29
7
votes
2 answers

Increase JTA transaction timeout limit in WildFly

How can I increase JTA transaction timeout in WildFly? Can be updated in standalone.xml as well as from Admin Console right?
Danyal Sandeelo
  • 12,196
  • 10
  • 47
  • 78
7
votes
5 answers

Hibernate JTA : Read DB connection parameters per environment

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 would like to set the hibernate properties like jdbc-url,…
Suraj Menon
  • 1,486
  • 3
  • 28
  • 50
7
votes
2 answers

Looking for a NoSQL DB with JTA support

Are there any reliable and well-known NoSQL DBs available that support JTA transactions? In my application I need to store some data to the RDBMS DB and some data to the NoSQL DB in the same transaction and I am using JTA for my RDBMS transactions.
Behrang
  • 46,888
  • 25
  • 118
  • 160
7
votes
1 answer

JTA Transactional Resource Implementation by Example

I'm trying to understand the basic principles of making a remote/networked resource compliant with JTA, and I'm thunderstruck by how little documentation/blogs/articles there are out there on the subject. Say I have written my own special type of…
IAmYourFaja
  • 55,468
  • 181
  • 466
  • 756
6
votes
2 answers

Are XA/JTA transactions still used?

I have an application that interacts multiple databases and some custom services. For some operations, I need transaction-like behavior where a set of changes either commit across all databases/services or all roll back if an error occurs. The XA…
Chris Sears
  • 6,502
  • 5
  • 32
  • 35
6
votes
1 answer

What is the default isolation level across nested transactions (instead of concurrent ones)?

Spring has 3 typical nested transactions propagations: REQUIRED, NEW and NESTED. Isolation level types are always described in terms of concurrent transactions. But what about nested case? What is the default visibility from inner to outer and the…
Whimusical
  • 6,401
  • 11
  • 62
  • 105
6
votes
2 answers

understanding JTA Spring and Bitronix

I am trying to understand what is the difference between JTA, Spring and Bitronix? What should I use for transactions in Hibernate persistence?
Dejell
  • 13,947
  • 40
  • 146
  • 229
6
votes
1 answer

Unable to enlist connection in transaction: enlistResource returns 'false'

All of sudden I got the following error continuously for a select query. Unable to enlist connection in transaction: enlistResource returns 'false' This appears to be thrown from DBCP…
yottabrain
  • 2,387
  • 5
  • 23
  • 37
6
votes
2 answers

JTA or LOCAL transactions in JPA2+Hibernate 3.6.0?

We are in the process of re-thinking our tech stack and below are our choices (We can't live without Spring and Hibernate due to the complexity etc of the app). We are also moving from J2EE 1.4 to Java EE 5. Technology stack Java EE 5 JPA 2.0 (I…
Aravind Yarram
  • 78,777
  • 46
  • 231
  • 327
6
votes
1 answer

Isolation in distributed (global) transactions using JTA

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 supported by JTA and the X/Open XA Two Phase Commit…
Bat0u89
  • 610
  • 2
  • 17
  • 25
6
votes
2 answers

When does flush and clear commit?

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 transactions that I'm getting OutOfMemory. I want to…
AFP_555
  • 2,392
  • 4
  • 25
  • 45
6
votes
2 answers

Unable to access TransactionManager or UserTransaction after updating to Hibernate 5

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 by JOIN), I now run into the next…
J. Doe
  • 201
  • 1
  • 3
  • 12