• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: JavaClient update conflicts
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: JavaClient update conflicts


  • Subject: Re: JavaClient update conflicts
  • From: John Ours <email@hidden>
  • Date: Wed, 15 Jul 2009 00:38:01 -0400


On Jul 14, 2009, at 10:19 AM, Stamenkovic Florijan wrote:

Do you have simple code to reproduce? Can you share it?

No, I am seeing this in our complex proprietary app. However, it should be extremely easy to mimic. Essentially, take your JC app, run two client apps concurrently connecting to the same server, simulate an update conflict, and there you go. So far there have been no indications that this exception has anything to do with my app specifically, so you should easily be able to recreate it.


Looping the list back in...

I am not able to reproduce this problem unless I push the EC to the server without saving it to the database (RMI for example). Baring that though I cannot reproduce the concurrency issue with either two copies of the client on one machine or two separate machines. With locking off on all the attributes I'm getting last-in-wins behavior as expected.

Is this the scenario in your app, ECs being pushed to the server dirty and uncommitted?

Even when I simulated that, I was able to catch the exception from saveChanges in client2, revert that context, and client1 was able to save as expected.

HTH,

John


_______________________________________________ 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
  • Follow-Ups:
    • Re: JavaClient update conflicts
      • From: Stamenkovic Florijan <email@hidden>
  • Prev by Date: Re: CSS with images
  • Next by Date: Re: Frameworks, Info.plist and Manifests
  • Previous by thread: Re: WOHyperlink is different with pageName vs directAction bindings?
  • Next by thread: Re: JavaClient update conflicts
  • Index(es):
    • Date
    • Thread