I have a table with optimistic versioning implemented using hibernate. One row in this table can be updated by more than one transaction at the same time and this update method is in stateless session bean. Issue here is when users are working on application at peak time, three to four transactions trying to update same row and database allows update for first transaction and other transactions getting versioning error (This works as per the implementation). Because of this user's operations are getting delayed and they have to repeat same process until database allows update.
Is there anyway to allow updates from multiple transactions with optimistic versioning in place?