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

Java Concurrent Update for multiple tables With Transaction support

I am looking for a development of a transaction framework, which needs to update the database tables concurrently. In simple words, a single transaction should update concurrently around 8 independent tables, and the whole transaction should fail if…
user2413742
  • 63
  • 1
  • 1
  • 4
0
votes
2 answers

Transactions with Hibernate in Apache Karaf / OSGi

We're developing a suite of modules to (hopefully) be deployed in Apache Karaf. Each module has a layered structure starting with the domain JPA entities / DAO, services, web components, etc., where each of these layers turns into a different OSGi…
Daniel Paval
  • 172
  • 12
0
votes
1 answer

Transactions in IBM WebSphere

I want to use transaction in my webapp that runs on IBM WAS 7. I've got 2 databases and JMS (mq), and it will be great to rollback them all together. What the best practice to do that? Should I need to use 3d party JTA libs (like spring.tx or JOTM)…
user1406196
  • 147
  • 3
  • 12
0
votes
2 answers

Measuring how many transactions are done on JTA application

I had a web software running in a Jboss AS 7 container witch saves our data in a PostgreSQL 9.1 database via JPA, an its configuration delegated to JTA. Last year it was adapted to run at AWS EC2 cloud. As the user demand grown our database usage…
Miere
  • 1,495
  • 2
  • 19
  • 24
0
votes
1 answer

Bitronix connection reset issue

I seem to get this error when deployed code to our linux environment, not sure what does this mean Please can someone help me to explain and possible fix? java.sql.SQLException: unable to get a connection from pool of a PoolingDataSource containing…
user1224036
  • 988
  • 1
  • 15
  • 34
0
votes
1 answer

JTA EntityManager without manual commits

I'm trying to move out my project from Seam 3. Now I'm stuck on JTA transactions after switching off Seam Faces module. There was integrated transaction management. Transactions were begun and commit automatically - without manual commit. Now when I…
robson
  • 1,623
  • 8
  • 28
  • 43
0
votes
3 answers

J2EE - JPA - EJB3 - Transactions in MDB methods

I have resource local datasource (Oracle9i) deployed at JBoss 5.1.0: OracleDS jdbc:oracle:thin:@IP_ADDRESS:1521:inv9i
igor.beslic
  • 954
  • 2
  • 9
  • 16
0
votes
1 answer

How to stop timer from retrying in Weblogic 10.3 (EE container) when transaction is rolled back due to SQLException (timeout)?

Basically i have EJB3 timer calling another EJB 3 (DAO) - this call is wrapped in catch block. The other EJB throws timeout SQL Exception when tries to acquire a connection to DS (throws exception to caller). In the logs i see that this timeout is…
Emil Iakoupov
  • 189
  • 14
0
votes
1 answer

Where exactly is the JTA Transaction demarcation for CMT respected?

I'm trying to fully understand the JTA demarcation with CMT. The behavior I am experiencing is that only the first @TransactionAttribute of the method is respected on the EJB and subsequent method invocations of the same bean with different…
Hoon
  • 153
  • 3
  • 10
0
votes
0 answers

ms sql commit failed, rollback not complete

I have a parent and child table in MS SQL 2008 and trying to perform a save call using hibernate with cascade enabled. Table specs that matter: parent table has an identity column and child table has a varchar column with length 50. Environment:…
0
votes
1 answer

Injecting dao by @EJB

I've just started to work with EJB. I want to recieve some data from database using JTA. My entity: @Entity @Table(name = "User") @NamedQuery(name = "User.findByAddressName", query = "select u from User u where u.userAddress.addressName…
Mary Ryllo
  • 2,321
  • 7
  • 34
  • 53
0
votes
1 answer

Specify database for JPA Table geneartion on deployment

I have an application with two databases and upon deployment I want to generate the tables for the entities in different two databases. For example if I have Entity1, Entity2 and Entity3, I want Entity1 and Entity2 tables to be generated in…
fareed
  • 3,034
  • 6
  • 37
  • 65
0
votes
1 answer

Use of JTA with Hibernate

What is the main objective to use JTA in a web application with Hibernate and Spring ?
Angelika
  • 381
  • 1
  • 9
  • 22
0
votes
1 answer

How to use JTA to POST an array of objects using Jax-RS?

I have a jax-rs REST service that POSTs an ArrayList objects to the server. On the server, I loop through each Book, convert it into a BookEntity (I'm using JPA), and then persist each book. If any BookEntity fails to be persisted, I'd like…
user798719
  • 9,619
  • 25
  • 84
  • 123
0
votes
2 answers

Atomikos + Spring + JMS read messages batch transactionally

I am trying to design an application using spring + atomikos that reads a batch of N messages and persists them to a database within a single transaction. It has to be a batch of messages because the data is only consistent when it's in batches,…
Giovanni Botta
  • 9,626
  • 5
  • 51
  • 94