Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@www.apache.org Received: (qmail 51603 invoked from network); 22 Nov 2003 11:51:04 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 22 Nov 2003 11:51:04 -0000 Received: (qmail 88161 invoked by uid 500); 22 Nov 2003 11:50:43 -0000 Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 88135 invoked by uid 500); 22 Nov 2003 11:50:42 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 88121 invoked from network); 22 Nov 2003 11:50:42 -0000 Received: from unknown (HELO www.siulintao.net) (62.177.146.246) by daedalus.apache.org with SMTP; 22 Nov 2003 11:50:42 -0000 Received: from siulintao.net ([192.168.100.2]) by www.siulintao.net (8.11.6/8.11.6) with ESMTP id hAMBtch01944 for ; Sat, 22 Nov 2003 12:55:38 +0100 Message-ID: <3FBF4D97.2030101@siulintao.net> Date: Sat, 22 Nov 2003 12:50:47 +0100 From: Rob Augustinus Organization: Open Solutions User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4) Gecko/20030612 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Tomcat Users List Subject: Re: shared object cache References: <3FBE9CA4.5000405@siulintao.net> <20031121232126.NPAL1561.mta9.adelphia.net@there> In-Reply-To: <20031121232126.NPAL1561.mta9.adelphia.net@there> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N I have written a PersistenceManager class that handles all database access and uses the SQLData interface to map java objects to User Defined Types in the oracle database. Every request now has to create a new instance of the persistencemanager so there is no sharing whatsoever. I would like the persistencemanager to look in the object cache first and if the object is not there retrieve it from the database. I need a way to keep this cache in memory so all requests can use the same cache. i hope this makes things clear.. Ben Souther wrote: >Shared between requests? >Shared between user sessions? >Shared between applications (contexts)? >Shared between machines? > >Can you give us a better description of what you are trying to do? > > >On Friday 21 November 2003 06:15 pm, you wrote: > > >>Hi there, >> >>I would like to implement my own shared object cache in >>my webapp. Does anybody have some ideas on how to >>do this? >> >>Rob Augustinus >> >> >>--------------------------------------------------------------------- >>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org >>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org >> >> > >--------------------------------------------------------------------- >To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org >For additional commands, e-mail: tomcat-user-help@jakarta.apache.org > > > --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org