Object Locking / Record Locking

7
There have been various questions asked in the past about object locking and it seems to be unresolved.  I needed a mechanism to lock an object for the duration of a user transaction and found that the Community Commons locking mechanism has been removed because it was working in the Application Server and this is no use in a load-balanced architecture. So I have created a fairly simple mechanism that relies on the database to keep track of locks, based on the GUID of the objects.  The pattern would be easy to replicate in any project.  If anyone is interested, I would be happy to share, as I would appreciate other people's input to validate my design. Also I would like to know whether Mendix are about to publish a new solution to this problem. 
asked
3 answers
1

For anyone who is interested, the Pessimistic Locking project has now been published to the Mendix AppStore https://appstore.home.mendix.com/link/app/109405/Karona-Consulting/Pessimistic-Locking

Chris

answered
0

I talked through design by Chris yesterday. It seems a very nice solution. But it would be nice to understand from the community whether this sort of pattern works. 

answered
0

I sent you a message Chris. Quite interested in seeing your solution since the upgrade to Mx7 is being blocked by this requirement.

answered