On 26/01/2012 17:30, Caldarale, Charles R wrote: >> From: Jess Holle [mailto:je...@ptc.com] >> Subject: Re: ThreadLocals, context listeners and classloader leaks > >> That said, there could and arguably should be another choice: > > I'll suggest something more radical: define a class such as ScopeLocal where > values are added to and removed from threads as they enter and leave a scope > boundary. For servlet engine purposes, typical scopes would be webapp, > session, request, servlet, etc. Doing it properly (and efficiently) might > well require JVM intervention, but it would certainly help in providing a > useful mechanism for app writers. Obviously, there's lots of definition work > needed here...
Imagine the fiendishly clever and machiavellian applications we'd have to debug if you did that... p > THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY > MATERIAL and is thus for use only by the intended recipient. If you received > this in error, please contact the sender and delete the e-mail and its > attachments from all computers. > -- [key:62590808]
signature.asc
Description: OpenPGP digital signature