You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Alex Chaffee <gu...@edamame.stinky.com> on 2000/06/16 05:20:41 UTC
Re: Global caching hack?
Sure. You could make your cache be a Context Attribute, aka an
Application Scope Bean in JSP.
See http://www.jguru.com/jguru/faq/view.jsp?EID=53309 for more
information and sample code.
- Alex
On Fri, Jun 16, 2000 at 05:13:39AM -0400, Robin Giese wrote:
> Hi,
>
> I was wondering how I'd be able to hack my own global cache (or rather,
> bunch o' variables) into Tomcat that would be available to all servlets and
> JSP pages. I'm trying to share an Oracle connection pool (and a couple
> similar, global, very large, non-session dependent objects) to all my
> servlets and JSPs, and I don't want to build a different cache for each
> servlet and JSP page, because it would be an incredible waste of memory.
> Where would be the right place for this kind of hack? Or is there an
> existing facility I could hack up to make it not a complete hack? (However,
> the objects aren't serializable.)
>
> Thanks,
>
> --robin
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org
--
Alex Chaffee mailto:alex@jguru.com
jGuru - Java News and FAQs http://www.jguru.com/alex/
Creator of Gamelan http://www.gamelan.com/
Founder of Purple Technology http://www.purpletech.com/
Curator of Stinky Art Collective http://www.stinky.com/