Announcement Announcement Module
No announcement yet.
Working sample app or example showing optimistic locking? Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Working sample app or example showing optimistic locking?

    I am doing a web app which uses Spring and Hibernate.
    I am trying to figure out how to do optimistic locking.
    I did varoius setting but it seems optimistic locking is
    not working. So, I would like to see how others did.

    Do you know of any working sample app or examples showing
    optimistic locking? I dont need explanation of how it is done.

    Thanks very much in advance!


  • #2
    Can anybody give me some info? Appreciate it!


    • #3
      Check out 'Hibernate in Action' and, they got some entries about optimistic locking. I am not sure but I guess the cave emptor example provides that kind of locking... . (I am really not sure)

      If you use the version tag, you may set up a simple test-case. Just modify the version value in an other thread while the first one read it, manipulate it and try to set it. There isn't much of an example needed.

      But there are various other ways to do optimistic locking. I would refer to the term application (level) transaction instead. What kind of locking are you referring to and what is causing you trouble?


      Martin (Kersten)