commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael A. Smith" <...@apache.org>
Subject Re: [lang] proposal: ThreadContext
Date Wed, 19 Jun 2002 19:23:09 GMT
On Wed, 19 Jun 2002, Ola Berg wrote:
> OK, the script-kiddie with the bad ideas is back, this time with a
> proposal for lang:
> 
> When doing servlets you have the app-context, the session-context and
> the request-context, where you can put variables (or context
> attributes as they are called).
> 
> What about a ThreadContext where you can put variables that belongs to
> a certain thread? Wouldn\'t that make writing thread safe things
> easier?
> 
> Object o = ThreadContext.getAttribute( \"fooBar\"):

http://java.sun.com/products/jdk/1.2/docs/api/java/lang/ThreadLocal.html

regards,
michael


--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message