Re: ?? about opportunistic locking...
Re: ?? about opportunistic locking...
- Subject: Re: ?? about opportunistic locking...
- From: Miguel Arroz <email@hidden>
- Date: Mon, 17 May 2010 22:33:17 +0100
Hi!
It's optimistic locking, and in my opinion, it's not implemented correctly in WO! ;)
http://terminalapp.net/dr-optimistic-locking/
Have fun.
(I'm not sure if that blog post is 100% correct, I wrote it 2 years ago, but it should be enough to explain the problem)
Yours
Miguel Arroz
On 2010/05/17, at 22:18, Theodore Petrosky wrote:
> I have a small app where I create a modaldialog to edit the attributes of an entity. all of the attributes are marked for 'locking' in Entity Modeler.
>
> I ran my app in development mode and brought up the dialog to edit the attributes.
>
> I fired up another computer pointed the browser at the same record.
>
> so both computers are looking at record 1 and have different values in the fields.
>
> I was expecting that that I could saved the changes from the browser on machine one, and if I tried to save the changes from machine two the app would throw an exception and I would see it in the logs....
>
> to my surprise, there was no error... machine two's changes were saved over machine one.
>
> so either I am doing something wrong or I don't understand opportunistic locking..
>
> I hope someone can help straighten me out.
>
> Ted
>
>
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden