This week's book giveaway is in the Java in General forum.
We're giving away four copies of Think Java: How to Think Like a Computer Scientist and have Allen B. Downey & Chris Mayfield on-line!
See this thread for details.
Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Transaction not committed using JPA

 
sherif hathout
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
nikola petanjak
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

Maybe you can get useful information from WebSphere trace.log?

Have you tried, in WebSphere console,

Troubleshooting -> Logs and trace -> /server_name/ -> Diagnostic Trace -> Change Log Detail Levels ?

There you can set, for instance,

openjpa.* -> (left click) -> Message and trace levels -> (fatal,severe,warning,info,...)

P.S. watch out for hard disk space
 
sherif hathout
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi nikola,

This issue happened on production environment and it happen randomly . no errors on logs as the severe levels is opened.

it will be difficult to open other levels as it will make server slowly.

is there any other way to know why transaction not committed ?

Thanks
 
nikola petanjak
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm sorry but that's best advice i can give, as beginner.

Good luck.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic