You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user-java@ibatis.apache.org by Vinaya Tirikkovalluru <vi...@converge.com> on 2010/04/14 17:24:58 UTC

Handling stale data on End User

Hi,

I have a situation below..

User A and User B queried the data for a part and are in edit mode.
User A updates the part successfully. As user B is still in the screen,
he does not know about the update. Now user B updates. Is there a way to
show the user that the data is already stale to User B in Ibatis/Spring
which makes it easier? 

Thanks
Vinaya


This electronic message is intended only for the use of the individual(s) or entity(ies) named above and may contain information which is privileged and/or confidential.  If you are not the intended recipient, be aware that any disclosure, copying, distribution, dissemination or use of the contents of this message is prohibited.  If you received this message in error, please notify the sender immediately.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-java-unsubscribe@ibatis.apache.org
For additional commands, e-mail: user-java-help@ibatis.apache.org


Re: Handling stale data on End User

Posted by Jeff Butler <je...@gmail.com>.
There's nothing automatic in iBATIS to deal with this.

I suggest you do some research on "optimistic locking" - this is the
most common pattern for dealing with concurrency issues in the web
world.  iBATIS supports an optimistic locking strategy, but you have
to implement the SQL yourself - and design your tables properly.

Or - you can just let user B overwrite user A's changes.  In reality,
this is probably the most common pattern :)

Jeff Butler


On Wed, Apr 14, 2010 at 10:24 AM, Vinaya Tirikkovalluru
<vi...@converge.com> wrote:
> Hi,
>
> I have a situation below..
>
> User A and User B queried the data for a part and are in edit mode.
> User A updates the part successfully. As user B is still in the screen,
> he does not know about the update. Now user B updates. Is there a way to
> show the user that the data is already stale to User B in Ibatis/Spring
> which makes it easier?
>
> Thanks
> Vinaya
>
>
> This electronic message is intended only for the use of the individual(s) or entity(ies) named above and may contain information which is privileged and/or confidential.  If you are not the intended recipient, be aware that any disclosure, copying, distribution, dissemination or use of the contents of this message is prohibited.  If you received this message in error, please notify the sender immediately.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-java-unsubscribe@ibatis.apache.org
> For additional commands, e-mail: user-java-help@ibatis.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-java-unsubscribe@ibatis.apache.org
For additional commands, e-mail: user-java-help@ibatis.apache.org