Re: Digging up a Session object from an EOGenericRecord
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