| From | Sent On | Attachments |
|---|---|---|
| Alex Chaffee | Jun 15, 2000 8:20 pm | |
| Robin Giese | Jun 16, 2000 2:13 am | |
| Nacho | Jun 16, 2000 3:27 am | |
| Alex Chaffee | Jun 16, 2000 6:45 am | |
| Craig R. McClanahan | Jun 16, 2000 9:55 am | |
| Jonathan Reichhold | Jun 16, 2000 10:05 am | |
| Nacho | Jun 16, 2000 10:15 am | |
| Chun, Byung (GEAE, Elano) | Jun 16, 2000 10:18 am | |
| Craig R. McClanahan | Jun 16, 2000 10:29 am | |
| Joseph Dane | Jun 16, 2000 12:45 pm |
| Subject: | RE: Global caching hack? | |
|---|---|---|
| From: | Nacho (nac...@siapi.es) | |
| Date: | Jun 16, 2000 3:27:34 am | |
| List: | org.apache.tomcat.dev | |
Why you aren't using a singleton? do you know singletons?
Saludos , Ignacio J. Ortega
-----Mensaje original----- De: Robin Giese [mailto:rt...@digitalkiwi.com] Enviado el: viernes 16 de junio de 2000 11:14 Para: tomc...@jakarta.apache.org Asunto: Global caching hack?
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





