These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: blocking locking and transaction
PostPosted: Fri Apr 09, 2010 2:55 am 
Newbie

Joined: Sat Nov 17, 2007 9:24 am
Posts: 5
Dear Members, I have web application which uses Hibernate for persistence. The Whole system is data centric that means lots of huge (involving millions) data operations happening at the back end (oracle).

I have very strange problem. I have front end where a link click results in one row insert in a table (for example TEST_TABLE).
But TEST_TABLE is locked (blocking) by one of database operation. So some times user gets exception and some times user has to wait minutes to see the saved record. But nothing happens because of locking. So he tries again and again.

Even after multiple tries he don't see any insert. Now after some hours he thought of trying again.
Now he saw is that there so many inserts already there. which are same in numbers as the number of his trials.

The problem is that now this is being taken as application is allowing duplicate inserts.

Please let me know .how to overcome the issue.

Thanks,
Pushpendra


Top
 Profile  
 
 Post subject: Re: blocking locking and transaction
PostPosted: Fri Apr 09, 2010 3:06 am 
Regular
Regular

Joined: Wed Mar 10, 2010 4:48 am
Posts: 106
If I understand it correct, the queries aren't executed at ones, but after a while.

Are you commiting?


Top
 Profile  
 
 Post subject: Re: blocking locking and transaction
PostPosted: Fri Apr 09, 2010 3:41 am 
Newbie

Joined: Sat Nov 17, 2007 9:24 am
Posts: 5
Yes, the insert happened after some time.
I am using Spring Hibernate support for transaction management. The commit/rollback is done by Spring container.
Thanks,
Pushpendra


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.