• 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: How to Retrieve Session User?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to Retrieve Session User?


  • Subject: Re: How to Retrieve Session User?
  • From: Jean-François Veillette <email@hidden>
  • Date: Thu, 5 Apr 2007 13:27:21 -0400

At first it feel strange, because my context is independant of the thread executing the code,  I don't see a relationship between the thread running the code and the business context itself.  Just that one will be bound by the other.  I would say it's a nice side effects to be able to do it that way, but I don't see it fit natively.
The only common denominator for all my EO is really the editing context that they share, not the thread they are in.

- jfv

Le 07-04-05 à 12:49, Chuck Hill a écrit :


On Apr 5, 2007, at 5:58 AM, Jean-François Veillette wrote:


Thanks Mike, I have a better picture now of what/where/how ERXThreadStorage is helping.


I still think that I don't want per thread storage, we already have request.userInfo for that and I use it only for web/request related informations (used at the interface layer only).

I still feel uncomfortable with this concept, but I might give it a try, I might feel better with this design once I use it in a real project.

At the business layer (outside of a wo / rrl context) the concept of thread doesn't hold as much (unless it's part of your business).


I don't see why that is true.  We are talking about java.lang.Thread, no WOWorkerThread.  A java.lang.Thread is the context of execution of Java code.  It is the context of execution that is relevant here.


Chuck


 _______________________________________________
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

References: 
 >How to Retrieve Session User? (From: Jean-François Veillette <email@hidden>)
 >Re: How to Retrieve Session User? (From: Mike Schrag <email@hidden>)
 >Re: How to Retrieve Session User? (From: Jean-François Veillette <email@hidden>)
 >Re: How to Retrieve Session User? (From: Chuck Hill <email@hidden>)

  • Prev by Date: Another fault issue???
  • Next by Date: Re: Another fault issue???
  • Previous by thread: Re: How to Retrieve Session User?
  • Next by thread: Error when webobjects servlet is being invoked using requestdispatcher
  • Index(es):
    • Date
    • Thread