wood burning stoves 2.0*
The moose likes EJB and other Java EE Technologies and the fly likes Not Commited Transaction using JPA Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Not Commited Transaction using JPA" Watch "Not Commited Transaction using JPA" New topic

Not Commited Transaction using JPA

sherif hathout

Joined: Nov 02, 2004
Posts: 18

I recently worked on application that used Hibernate as JPA provider and using an Oracle database and deploy the application on a WebSphere application server 6.1 server.
my application ran a lot of transactions per second ,all of them were running successfully but one in the middle did not committed (i notice that balance not changed), no problem happened or exception in logs, it happened randomly.
I did not configure where the problem persist , from application server or from my application or even from hibernate.

Please help
Mahendr Shinde
Ranch Hand

Joined: Sep 03, 2011
Posts: 38

I think it's all because of empty catch blocks with tr.rollback() which rollbacks your transaction but never display any thing!

your input is not sufficient to track this problem.

There is still lot to learn!
sherif hathout

Joined: Nov 02, 2004
Posts: 18
problem was solved, there was another transaction (inquire other service) running throw my request that resulted change in entity that i used so when transaction commit it was reset my changes as the inquiry request hold old values and overide my changes.
Don't get me started about those stupid light bulbs.
subject: Not Commited Transaction using JPA
Similar Threads
difference betweet Hibernate and JPA
are entity beans EJB3?
Using Hibernate EntityManager
How To Add Hibernate Facet To Eclipse Galileo JPA Project?
Transaction not committed using JPA