threads and GIDs and EC's … oh, my
threads and GIDs and EC's … oh, my
- Subject: threads and GIDs and EC's … oh, my
- From: Larry Mills-Gahl <email@hidden>
- Date: Wed, 11 Apr 2012 11:52:47 -0400
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