what is the correct pattern for handling OLE in a (REST) web service? this is what i\'m doing now, for example,
protected void doDelete(HttpServletRequest re
The "politically correct" answer in rest, is to return an HTTP 409 (Conflict) witch matches perfectly with the idea of optimistic locking. Your client should manage it, probably by retring a few seconds later.
I wouldn't add the logic to retry in your app, as your client will already handle situations when you return a 40X code.