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
1 answer

Spring + Atomikos batch insert/update

I managed to configure spring + atomikos to have global transactions across multiple databases, e.g., updating or inserting records transactionally. I have been using the @Transactional annotation together with the SqlUpdate or BatchSqlUpdate…
Giovanni Botta
  • 9,626
  • 5
  • 51
  • 94
0
votes
2 answers

Java spring database application won't quit reference to org.enhydra.jdbc.pool.PoolKeeper is still active why?

Hello all I have a simple Spring application which will not end as there is still a reference left to org.enhydra.jdbc.pool.PoolKeeper. I include all the references I feel are revelant below does it look ok and has anyone experienced this before? I…
Paul Whelan
  • 16,574
  • 12
  • 50
  • 83
0
votes
2 answers

Distributed transaction between client -> server -> client

For a new project i'm searching for technologies that will make my life a bit easier. My new project is basically 2 clients and a server: client1 sends a message1 to server, server sends message1 to client2, client2 does something with…
T. Akhayo
  • 411
  • 6
  • 13
0
votes
0 answers

How do I utilize JTA , Persistence and TransactionManager

I'm creating a web application, I would like to leverage JTA to do this, can some one direct me to a tutorial or walk me through the basic to get this done. The main topics I would like touched on would be: Setting up Persistence Using…
Fabii
  • 3,820
  • 14
  • 51
  • 92
0
votes
2 answers

Deadlock in a Spring+Hibernate+DB2+JTA+XA application

Exception from application log: 12:04:18,503 INFO ExceptionResolver:30 - [ org.springframework.dao.DeadlockLoserDataAccessException ] Hibernate flushing: could not update: [sero.chase.integration.Beans.Bean#1000]; SQL [update SCHM.v***240u_bean…
SerotoninChase
  • 424
  • 11
  • 28
0
votes
1 answer

Handle JTA exception using EclipseLink running on JBoss AS

Using Java 1.6 JBoss AS 7.1.1 EclipseLink 2.4.1 JTA Updated Question How do I suppress the stacktrace being thrown by JBoss when I handle the error on my own in a try catch with flush? Question I'm trying to persist a entity using…
maGo
  • 362
  • 1
  • 3
  • 11
0
votes
3 answers

Make transactionless EJB call inside a transaction

I'll try to describe the situation. We have a web service; on each request web service starts a JTA transaction. It performs several database calls through XA datasource within that and calls some other web services (out of transaction context) and…
Andrey Adamovich
  • 20,285
  • 14
  • 94
  • 132
0
votes
2 answers

how to solve Null user or password not supported in THIN driver

i am getting Null user or password not supported in THIN driver when configure jpa with hibernate configuration in seam components.xml
nag
  • 647
  • 6
  • 25
  • 43
0
votes
2 answers

How do I configure transactions with Solr and myBatis in Spring (Java)?

I have a Java Spring 3.0 application that inserts data in a database via myBatis 3.1 and also uses DataImportHandler (DIH) to have Solr 3.6.1 index that database data as well as index binary file attachments. So, I would like to have transaction…
James
  • 2,876
  • 18
  • 72
  • 116
0
votes
1 answer

How to flush each transaction to DB using Entity Manager

I was fetch records from .csv file using smooks the size of file is around 30MB data in single file ,in this file around 3 laks of records fetch into List.. i was done next List is divided into subparts using subList Partition size is upto 2000 . i…
nag
  • 647
  • 6
  • 25
  • 43
0
votes
2 answers

How to Sync Entity Bean with Database After Trigger Update

PostgreSQL 9.1 Glassfish 3.1.2.2 Firefox 10.0.0.7 Linux I am using JPA to persist entities in PostgreSQL. However, there is one table (named Position) which is populated by triggers and I use an entity of that table which acts as a read only. The…
Ender
  • 1,652
  • 2
  • 25
  • 50
0
votes
2 answers

JTA controlled transactions in JBoss AS7 using EclipseLink, Transaction is required

Environment Application server: JBoss AS7 (7.1.1 Final) JPA implementation: EclipseLink (2.4.1) OS: Windows 7 DB: PostgreSQL 8.4 Update 2, solved The problem was that i instantiated the AccountService class instead of injecting it using @EJB. After…
maGo
  • 362
  • 1
  • 3
  • 11
0
votes
1 answer

Spring JTATransactionManager fails to bind Hibernate and JDBC in a single session

I use JTATransactionManager to manage Transactions. One piece of code that I want to wrap with Spring's @Transactional annotation has 2 database calls - one using Hibernate SessionFactory and another a plain JDBC. Both use the same dataSource.…
Anand Hemmige
  • 3,593
  • 6
  • 21
  • 31
0
votes
1 answer

Updated entity not being retrieved correctly

I have a spring mvc application running on glassfish. I don't know the source of my problem so ill elaborate as much as possible. I have 2 Classes A User Class @Entity @Table(name="Users") public class User extends BaseEntity { // other…
Mr T.
  • 4,278
  • 9
  • 44
  • 61
0
votes
0 answers

Two-Phase commit in EJB

I getting Two-Phase commit Exption in my application for one of the datasource. Point is application only does ready only data option using Oracle Toplink. Here is what happling in Application Request come to webservice Webservice calls to JMS…
CodeDCode
  • 390
  • 5
  • 17