Return-Path: Delivered-To: apmail-tomcat-dev-archive@www.apache.org Received: (qmail 10154 invoked from network); 1 Jun 2007 15:51:46 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 1 Jun 2007 15:51:46 -0000 Received: (qmail 67669 invoked by uid 500); 1 Jun 2007 15:51:45 -0000 Delivered-To: apmail-tomcat-dev-archive@tomcat.apache.org Received: (qmail 67615 invoked by uid 500); 1 Jun 2007 15:51:45 -0000 Mailing-List: contact dev-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Developers List" Delivered-To: mailing list dev@tomcat.apache.org Received: (qmail 67604 invoked by uid 99); 1 Jun 2007 15:51:45 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Jun 2007 08:51:45 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of atreyuas@ngi.it designates 213.92.5.122 as permitted sender) Received: from [213.92.5.122] (HELO slim-2a.inet.it) (213.92.5.122) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Jun 2007 08:51:41 -0700 Received: from ::ffff:150.217.13.52 ([::ffff:150.217.13.52]) by slim-2a.inet.it via I-SMTP-5.4.4-547 id ::ffff:150.217.13.52+qwkIfkt2MkR; Fri, 01 Jun 2007 17:51:20 +0200 From: "atreyuas@ngi.it" To: dev@tomcat.apache.org X-wmSenderIP: 150.217.13.52 Message-ID: <150.217.13.52.1027550293.1180713080@webmail.inet.it> Subject: How to load a static class on Tomcat startup Date: Fri, 01 Jun 2007 15:51:20 +0000 X-Mailer: NGI Webmail Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org Hello everybody, I want to know how I can configure Tomcat to load a Singleton class on his startup routine? This class implement a cache that I want to stay in memory until Tomcat is shutted down. I've read about context but it seem to load the class only on a particular URL request.. I want the class to be loaded with Tomcat, without any request is made. Thanks to all Andrea --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org For additional commands, e-mail: dev-help@tomcat.apache.org