Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

how stop simultaneous data update?  RSS feed

 
dinesh thalis
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have big problem in my application that is concurrency issue(stop simultaneous data update). I'm new to Database locking after reading EJB3 in Action book I decided to use optimistic lock for handle this issue, below show my code I'm using CMT. It seems to be not handle concurrency issue. I looking example in internet more that one week but still I'm fail. Please guide me to solve this issue (If you can provide sample example it's great help to my studies). I'm using mysql 5.1, Glassfish 2.1, Netbeans 6.8 in Ubuntu 9.10 environment. I also added version annotation in my entity class.



please give you're precious comments.
 
Jaikiran Pai
Sheriff
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I looking example in internet more that one week but still I'm fail


Search of "JPA optimistic locking" and you find examples including this one.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!