Re: threads and GIDs and EC's … oh, my
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