users@grizzly.java.net

Re: sharing global data between filters

From: Jeanfrancois Arcand <Jeanfrancois.Arcand_at_Sun.COM>
Date: Tue, 06 Nov 2007 21:27:26 -0500

Salut,

Radim Kolar SF.NET wrote:
> is there some inteligent way how to share some global data (dns cache
> in my case) between Filters?
>
> i mean avoiding to use static variables or subclassing Controller and adding
> new field to it.
>
> i am seeking for something per Controller like Context.setAttribute().

Can you explain why Context.setAttribute will not works? I suspect you
want to add info once and keep it "forever"?

Thanks!

-- Jeanfrancois


>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_grizzly.dev.java.net
> For additional commands, e-mail: users-help_at_grizzly.dev.java.net
>