tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lightbulb432 <>
Subject Is ThreadLocal safe to use in servlets
Date Sat, 02 Jun 2007 19:45:39 GMT

Are ThreadLocal variables safe to use with servlets? There are some cases
where it could really simplify my code if used correctly, but first I want
to make sure there aren't any horrible problems with doing so. (I've read
that the implementation of ThreadLocals has gotten much better with the last
few releases of Java.)

Has anyone had experience using them successfully, or even unsuccessfully?
If so, please share your insights.

View this message in context:
Sent from the Tomcat - User mailing list archive at

To start a new topic, e-mail:
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message