I might be misunderstanding your use case, but
Patrik Wikström said:We have a legacy table that has to be updated on every call, especially with the last access timestamp which has some logic connected to it.
But I would implement this using a Service (loaded via Services.xml file during AppServer startup and subscribing to the static Activated event of the Consultingwerk.OERA.ServiceInterface class.
But I don't see how that question relates to optimistic locking.