This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
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 Java 8 in Action this week in the Java 8 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
Author

Not Commited Transaction using JPA

sherif hathout
Greenhorn

Joined: Nov 02, 2004
Posts: 18

Hi
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
Greenhorn

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.
 
 
subject: Not Commited Transaction using JPA
 
Similar Threads
Using Hibernate EntityManager
Transaction not committed using JPA
difference betweet Hibernate and JPA
are entity beans EJB3?
How To Add Hibernate Facet To Eclipse Galileo JPA Project?