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: Guido Neitzer <email@hidden>
- Date: Mon, 9 Mar 2009 09:53:21 -0700
Yeah, ERXThreadStorage is a very nice helper. I use it all the time
for small things I might need everywhere.
cug
On Sat, Mar 7, 2009 at 2:08 PM, Riccardo De Menna <email@hidden> wrote:
>
> 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
>
_______________________________________________
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