How to retry JPA transactions after an OptimisticLockException
Introduction In this article, I will discuss how we can implement an automatic Retry mechanism when dealing with the JPA OptimisticLockException. You can find the introductory part here and the MongoDB implementation here.