Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Struts 2 »

volatile vs ThreadLocal

Martin Gainty

2007-02-09

Replies:

Good Afternoon All-

In a StrutsApplication is it best to use delcare variables with volatile OR
ThreadLocal to ensure variables are referenced in a ThreadSafe manner?

Thx,

Martin Gainty

______________________________________________
Disclaimer and confidentiality note
Everything in this e-mail and any attachments relates to the official
business of Sender. This transmission is of a confidential nature and Sender
does not endorse distribution to any party other than intended recipient.
Sender does not necessarily endorse content contained within this
transmission.
(mobile) 603-438-5053

_________________________________________________________________
Check out all that glitters with the MSN Entertainment Guide to the Academy
Awards?  http://movies.msn.com/movies/oscars2007/?icid=ncoscartagline2


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.