tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: Who wants my Cassandra session manager for Tomcat?
Date Thu, 05 Apr 2012 00:07:40 GMT
Morten,

On 4/4/12 12:18 PM, Morten Jorgensen wrote:
> For the cache? The main reason why I use a filter is to be able to
> tie a cache object to a thread-local variable for the period for
> which the request is being processed. As soon as the response is
> streamed to the client the cache is released. If Tomcat already
> contains some internal reference to the current request then I won't
> need to use a filter in this manner. I am not a fan of thread-local
> variables, so I'd very much like to remove the dependency on having
> this filter in place.

I wonder if this Filter would fail to work properly in an asynchronous
context. You would certainly have to test that and document it
appropriately.

-chris


Mime
View raw message