Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 61185 invoked from network); 2 Nov 2005 12:55:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 2 Nov 2005 12:55:21 -0000 Received: (qmail 83163 invoked by uid 500); 2 Nov 2005 12:55:07 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 83149 invoked by uid 500); 2 Nov 2005 12:55:07 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 83134 invoked by uid 99); 2 Nov 2005 12:55:07 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Nov 2005 04:55:07 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of funkman@joedog.org designates 204.74.20.252 as permitted sender) Received: from [204.74.20.252] (HELO sid.armstrong.com) (204.74.20.252) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Nov 2005 04:55:03 -0800 Received: from [10.38.20.105] (tafunk-lt.americas.armstrong.com [10.38.20.105]) by sid.armstrong.com (8.12.8p1/8.12.8) with ESMTP id jA2D1muH002092 for ; Wed, 2 Nov 2005 08:01:48 -0500 Message-ID: <4368B716.1080701@joedog.org> Date: Wed, 02 Nov 2005 07:54:46 -0500 From: Tim Funk Organization: Human being User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.11) Gecko/20050728 X-Accept-Language: en-us, en, es-mx, de, sv MIME-Version: 1.0 To: Tomcat Users List Subject: Re: Modifying the Tomcat Cache? References: <19505.1130934970@www14.gmx.net> In-Reply-To: <19505.1130934970@www14.gmx.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N You need to create your own classloader and load your custom class into that classloader. Then when it changes - you disregard that classloader (and its class). Tomcat is not doing the caching - the jvm is. -Tim Michael Vorsch�tz wrote: > Hello, > > My web application generates at runtime a java class and compiles it. If I > change this class and recompile it the application uses the old class from > the tomcat cache and not the new compiled one. > > Is there a possibility to delete this cached class manualy or force tomcat > not to cache this class? > > I don't want to restart the tomcat or delete the whole cache after the > changing. And I don't want to set the reloadable parameter to true for the > whole web application. > > Has somebody an idea how I could implement this? > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org