• 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: threads and GIDs and EC's … oh, my
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: threads and GIDs and EC's … oh, my


  • Subject: Re: threads and GIDs and EC's … oh, my
  • From: "Ricardo J. Parada" <email@hidden>
  • Date: Fri, 13 Apr 2012 13:14:04 -0400

Kieran has an excellent presentation and example in Wonder under Examples/Misc/BackgroundTasks.
Video: http://www.wocommunity.org/podcasts/wowodc/2011/BackgroundTasks.mov


On Apr 11, 2012, at 11:52 AM, Larry Mills-Gahl wrote:

> I understand that passing EOs between threads is a bad idea, so I'm passing GIDs into the Callable.
>
> My sessions have a parent editing context that contains a connection dictionary that is set based on the logged in user (and some session state). (The session modifies the connection dictionary and closes the channels and calls connectWithModelNamed())
>
> Do I have to initiate this connection again in the thread or is there a way to use the registered channels that already exist. (The thread is not modifying any EOs... they are just being reported on and rendered)
>
>
> Right now, the process in the thread is:
>
> 	ERXEC.newEditingContext()
> 	close channels
> 	connectWithModelNamed (and connection dictionary info passed into the thread constructor)
> 	ec.faultWithGlobalID to get necessary EOs
>
> Is there a better way to do this?
>
>
> Larry Mills-Gahl
> email@hidden
>
>
>
>
> _______________________________________________
> 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

 _______________________________________________
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

References: 
 >threads and GIDs and EC's … oh, my (From: Larry Mills-Gahl <email@hidden>)

  • Prev by Date: Re: WOCOmmunity Logo
  • Next by Date: Re: [ANN] WOInject 1.0
  • Previous by thread: threads and GIDs and EC's … oh, my
  • Next by thread: WOWODC 2012 and Project Wonder Boot Camp tickets now on sale!
  • Index(es):
    • Date
    • Thread