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