Results 1 to 3 of 3

Thread: Working sample app or example showing optimistic locking?

  1. #1

    Default 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!

    Pete

  2. #2

    Default

    Can anybody give me some info? Appreciate it!

  3. #3
    Join Date
    Aug 2004
    Location
    Germany, Magdeburg
    Posts
    279

    Default

    Check out 'Hibernate in Action' and Hibernate.org, 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?


    Cheers,

    Martin (Kersten)

Similar Threads

  1. Replies: 8
    Last Post: Aug 12th, 2010, 01:19 PM
  2. Optimistic Locking Strategies
    By wexwarez in forum Data
    Replies: 4
    Last Post: Sep 8th, 2005, 07:24 AM
  3. Replies: 0
    Last Post: Jul 15th, 2005, 04:26 AM
  4. Can't get the flowloader sample application working
    By luxaeterna in forum Web Flow
    Replies: 1
    Last Post: Jun 20th, 2005, 10:04 PM
  5. Optimistic locking design/arhc question
    By hgrongstad in forum Architecture
    Replies: 2
    Last Post: Feb 21st, 2005, 10:52 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •