Originally posted by ben oliver:
What I need is to make sure that at any given time only one client can update the database, after it is done, the next one can update it...
Originally posted by Mahesh Gurav:
I think ben is asking Question about hibernate and u have given answer with reference to EJB transaction,i hope hibernate transaction are also work on the same rules.
If ben is asking about concurrency issue & according to u if hibernate is handling this issue by transaction only,then what is Pessimistic locking & optimistic locking.Can you elaborate the point.
refrence for locking mechanism:Hibernate in Action.Chapter 5.1.7
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koophttps://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton