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

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

  • Follow-Ups:
    • Re: threads and GIDs and EC's … oh, my
      • From: "Ricardo J. Parada" <email@hidden>
  • Prev by Date: Re: SQL
  • Next by Date: Re: SQL
  • Previous by thread: Re: SQL
  • Next by thread: Re: threads and GIDs and EC's … oh, my
  • Index(es):
    • Date
    • Thread