• 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: follow relationship after moving to different EC?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: follow relationship after moving to different EC?


  • Subject: Re: follow relationship after moving to different EC?
  • From: Nathan Dumar <email@hidden>
  • Date: Thu, 5 Aug 2004 12:10:45 -0400

Robert,

Thanks for replying.

On Aug 5, 2004, at 11:02 AM, Robert Walker wrote:

I'm not sure why it's necessary to "move" the object to another EOEditingContext besides the default one. But the above should give you what you want anyway.

I needed to create a bunch of location objects, connect them to a user object, and then have those results immediately available to all other users in different sessions. For some reason, when I did this in the default EC, the objects would not show up for quite a long time (IIRC, about 30 minutes on average, which was unacceptable). I created a new EC so that I could destroy it at the end of the operation, freeing up those objects to be re-acquired by different ECs.


I keep the user object in a session variable (in the default EC), to keep track of which user is using each session. So, I moved the user object from the default EC to the new EC, which then allowed me to connect it to newly created location objects.

Turns out the error came from a different part, where I was doing a fetch with a different object in the default EC. I had overlooked that one when I was changing the component to use a separate EC instead of the default one.

If you are simply following a relationship in the local instance then the standard fault firing mechanism should fetch the objects of the relationship in the new EOEditing context as you would expect. At least this what I expect to happen.

My thinking exactly, just wasn't sure.

Hope this helps...

It did, actually. Thanks for the great explanation. It cleared some of the fog in my understanding of an editing context.


Take care,
Nathan
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.


References: 
 >follow relationship after moving to different EC? (From: Nathan Dumar <email@hidden>)
 >Re: follow relationship after moving to different EC? (From: Robert Walker <email@hidden>)

  • Prev by Date: Re: follow relationship after moving to different EC?
  • Next by Date: Image scaling
  • Previous by thread: Re: follow relationship after moving to different EC?
  • Next by thread: Re: follow relationship after moving to different EC?
  • Index(es):
    • Date
    • Thread