• Post Reply Bookmark Topic Watch Topic
  • New Topic

how to achieve concurrency for this problem?  RSS feed

 
saran sadaiyappan
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I am running a application which ll be processing 2 lakh docs per day.Roughly 3 docs per second.I am doing a database updation for all these docs.But if two docs are sent with a same id(unique) then it shd throw an error.As of now if i am sending such high volumes in short interval then the concurrency issue occurs.

Whn the first doc is being processed ,the second doc with the same id is also being processed successfully as the first transaction has not performed a commit at the time of second thread s reading.

How can I overcome this issue?
 
Purushoth Thambu
Ranch Hand
Posts: 425
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you explain the problem with the code snippet?
 
Raymond Ong
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you using EJBs?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!