• 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: Problem with webobject attributes in WOBuilder
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem with webobject attributes in WOBuilder


  • Subject: Re: Problem with webobject attributes in WOBuilder
  • From: Mike Schrag <email@hidden>
  • Date: Fri, 16 Jun 2006 11:58:43 -0400

Rule 5 - Use ERXThreadStorage instead of the session to have not so much dependencies there.

I do not use this object, I have seen it proposed as a solution for things I would have done differently. I would like to see a sample app that make use of it (simple, just enough to prove the concept). Maybe just expose a situation where it solve a common problem in an efficient way.

An example where I use ERXThreadStorage is that when a user authenticates, I put the user into thread storage. The particular case where this is useful is in our notification framework (which emails and instant-messages people about changes). In this case, model objects are actually firing these notifications, and the notification system needs to know who the current user is (to do things like "don't notify me about something i did" as well as to know who actually made the change). So it can get the current user out of thread storage and I don't have to pass a bunch of session/ user stuff down through every single layer of the API (and some places you just can't get to it -- for instance, a notification out of of the EO update delegate methods).


ms
_______________________________________________
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: Problem with webobject attributes in WOBuilder
      • From: Guido Neitzer <email@hidden>
References: 
 >Problem with webobject attributes in WOBuilder (From: "John Stewart" <email@hidden>)
 >Re: Problem with webobject attributes in WOBuilder (From: "John Stewart" <email@hidden>)
 >Re: Problem with webobject attributes in WOBuilder (From: David Masters <email@hidden>)
 >Re: Problem with webobject attributes in WOBuilder (From: "John Stewart" <email@hidden>)
 >Re: Problem with webobject attributes in WOBuilder (From: Jean-François Veillette <email@hidden>)
 >Re: Problem with webobject attributes in WOBuilder (From: Jean-François Veillette <email@hidden>)

  • Prev by Date: Re: Problem with webobject attributes in WOBuilder
  • Next by Date: Problems with building WebService
  • Previous by thread: Re: Problem with webobject attributes in WOBuilder
  • Next by thread: Re: Problem with webobject attributes in WOBuilder
  • Index(es):
    • Date
    • Thread