• 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: Digging up a Session object from an EOGenericRecord
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Digging up a Session object from an EOGenericRecord


  • Subject: Re: Digging up a Session object from an EOGenericRecord
  • From: Riccardo De Menna <email@hidden>
  • Date: Sat, 7 Mar 2009 22:08:59 +0100


On 07/mar/09, at 19:32, Chuck Hill wrote:

I used to do that nasty EC stuff as I could not see another way. Now that I have found ThreadLocal religion, I never use that malignant hack. I think of the information stashed in the thread as an ExecutionContext (similar to a WOContext). That feels like the "right" solution to this common need. I've even created an object to aggregate the bits under one object. This is also very useful for recording things like user activity (set into the thread / execution context by the UI component) so that you you can not only record who and what and when, but why as well.

ThreadLocal (ERXThreadStorage). Good stuff!

Lucky I have you guys then... I rearranged the code a bit and it's working like a charm. Hail to ERXThreadStorage then... a newly digged out fanta-tool of this never ending source of help that was wisely called "Wonder". ;)


rdm

_______________________________________________
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: Digging up a Session object from an EOGenericRecord
      • From: Guido Neitzer <email@hidden>
References: 
 >Digging up a Session object from an EOGenericRecord (From: Riccardo De Menna <email@hidden>)
 >Re: Digging up a Session object from an EOGenericRecord (From: Riccardo De Menna <email@hidden>)
 >Re: Digging up a Session object from an EOGenericRecord (From: Mike Schrag <email@hidden>)
 >Re: Digging up a Session object from an EOGenericRecord (From: Riccardo De Menna <email@hidden>)
 >Re: Digging up a Session object from an EOGenericRecord (From: Mike Schrag <email@hidden>)
 >Re: Digging up a Session object from an EOGenericRecord (From: Chuck Hill <email@hidden>)

  • Prev by Date: [OT] Generic search component UI
  • Next by Date: Re: [OT] Generic search component UI
  • Previous by thread: Re: Digging up a Session object from an EOGenericRecord
  • Next by thread: Re: Digging up a Session object from an EOGenericRecord
  • Index(es):
    • Date
    • Thread