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

How to get hibernate-entitymanager to work with JTA out of JBoss?

I am building a tool for out-of-container EJB testing. I have managed to run Hibernate's EntityManager in it successfully. Now I want to integrate it with JTA to enable strict control of transactions. The problem I am faced with is the following:…
artemb
  • 9,251
  • 9
  • 48
  • 68
0
votes
0 answers

How sould persistance unit for EJB app using in memory database look like?

I have an Java app, which i used to test with this persistence unit with in memory Derby driver: org.hibernate.ejb.HibernatePersistence
Ondrej Sotolar
  • 1,352
  • 1
  • 19
  • 29
0
votes
3 answers

Perform work in a XA transaction

I have a situation where I need to perform some work in a global tx. For this reason, i have the following PersistenceUnit defined in my persistence.xml to get me a jta entityManager.
Anuj Kaushal
  • 61
  • 1
  • 6
0
votes
1 answer

Two Phase commit + JTA + JMS + Hibernate

I have a requirement where the messages are put into the queue and then a method call is made to update the DB which is done through Hibernate. I want to make this as part of a single transaction, so that if the update call in the db fails the JMS…
Guest
  • 455
  • 10
  • 20
0
votes
2 answers

Auto Flush not working for Spring 3.1 LocalEntityManagerFactoryBean + Hibernate 4 + Websphere JTA

I have did a lot of search on the web and pages like this and this and this mostly suggested for using CMTTransactionFactory. However I am still unable to make it work (I wonder if it is because I am creating a EM using a…
Adrian Shum
  • 38,812
  • 10
  • 83
  • 131
0
votes
1 answer

How to access JTA transactions programmatically?

The only interface to the JTA I have seen so far is the @TransactionAttributeannotation. I have found nothing usable in the Oracle Java EE tutorials or using search engines... I would like to interact with the transactions provided by the container…
kostja
  • 60,521
  • 48
  • 179
  • 224
0
votes
1 answer

Hibernate Batch Update

I am trying to update a collection of a Java entity, but the order in which Hibernate executes the batch update leads to a constraint violation exception. I will use the following example to explain the situation. Entity Student Int id String…
Prim
  • 1,312
  • 5
  • 25
  • 51
0
votes
2 answers

How to drive together JTA (Bitronix) and XADisk

We have a J2SE application (we deploy it as a standalone JAR) which is a Jetty-powered web service, making use of JPA (EclipseLink) and JTA (Bitronix, UserTransaction). As you can guess, the main purpose of this app is to receive REST requests,…
gyorgyabraham
  • 2,550
  • 1
  • 28
  • 46
0
votes
1 answer

Why am I getting a "No Persistence provider for EntityManager named myclientunit" exception?

I'm trying to deploy a JAR file on JBoss 4.2.3.GA. I'm using Hibernate 4.1.5.SP1 and validator 4.3.0.Final. The Maven dependencies are ... org.hibernate
Dave
  • 15,639
  • 133
  • 442
  • 830
0
votes
1 answer

Spring + JPA/Hibernate + ActiveMQ with XA/JTA in un-managed container. Not seeing errors, but not seeing data being committed to database

I'm in the process of adding JMS capabilities (via ActiveMQ) to an existing Spring/Hibernate web application. Consequently, I'm wanting to add XA/JTA capabilities to this app such that I can manage transactions (with Spring) which span both the data…
acscheiner
  • 21
  • 6
0
votes
1 answer

Call Java with Javascript (JTA telnet)

I need a bit of your help. I hope you could find a minute to take a look at my problem. I'm using JAVA telnet application ( http://javatelnet.org/space/start ) You can download JTA application at this link ( http://javassh.org/download/jta26.jar )…
jomajo
  • 37
  • 3
  • 10
0
votes
1 answer

My EJB throws a transaction required exception although another EJB setup in the same way with same persistence unit throws no excpetion

First here is my entire EJB file: package enkia.pulse.indexing.beans; import enkia.pulse.core.Category; import enkia.pulse.core.Product; import enkia.pulse.core.Review; import enkia.pulse.core.Twitter; import enkia.utils.HarvestingConstants; import…
0
votes
1 answer

How to configure SharedEntityManagerCreator to not create entitymanagers every time..

I am having a strange problem deleting entities and I am thinking that this is because of wrong spring configuration / bug and i am not able to exactly point what it is . I am able to do reads , but whenever i try remove i get an error.. Following…
user1540821
  • 41
  • 1
  • 6
0
votes
2 answers

JTA CMT transaction boundaries - where transactions start and end?

I've got a problem in my Java EE app - in general, I persist one object, send a JMS, and on MDB I'm trying to find that object - sometimes it works, but sometimes I receive null on JPA find. I suspect that transaction didn't finish, but I can't find…
0
votes
2 answers

Swapping out default Java EE implementations on GlassFish

I have been planning on using Hibernate to handle the ORM for an app I will be deploying to an Oracle GlassFish Server (OGS). I'd also like to take advantage of a few features that Bitronix (JTA impl) offers that I really like. Having never worked…
IAmYourFaja
  • 55,468
  • 181
  • 466
  • 756