How can i achieve Pessimistic Concurrency?
In this mode container will allow only one transaction at a time to access the data the entity bean is holding. Other transactions that want access to the same data will block (wait) until the first transaction has completed. This is acheived by issuing a tuned SQL with “FOR UPDATE” when entity bean is loaded.