Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 56557 invoked from network); 11 May 2006 13:16:50 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 11 May 2006 13:16:50 -0000 Received: (qmail 25887 invoked by uid 500); 11 May 2006 13:16:39 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 24787 invoked by uid 500); 11 May 2006 13:16:34 -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 24776 invoked by uid 99); 11 May 2006 13:16:34 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 May 2006 06:16:34 -0700 X-ASF-Spam-Status: No, hits=1.4 required=10.0 tests=DNS_FROM_RFC_ABUSE,DNS_FROM_RFC_WHOIS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [206.190.53.29] (HELO smtp104.plus.mail.re2.yahoo.com) (206.190.53.29) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 11 May 2006 06:16:33 -0700 Received: (qmail 92864 invoked from network); 11 May 2006 13:14:35 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Received:From:To:Subject:Date:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding:X-Mailer:Thread-Index:In-Reply-To:X-MimeOLE; b=lLpBrdCU8ovLh6AgzyNd0Oe7/C/pG0xIMflgwlDeIqznTfebOUXwLKpy8JlKsbfoKhPERA4DOmb93se3JdkDq7L2cIBlGO7Rq8Ohg50v3Tx3if6GknS7lNc8Jgh49Iwrh9MjojcMHOSrENyf/AqoHUWQ+4Euyp8BBkGIMKsDr2I= ; Received: from unknown (HELO tim) (timlucia@12.160.199.10 with login) by smtp104.plus.mail.re2.yahoo.com with SMTP; 11 May 2006 13:14:35 -0000 From: "Tim Lucia" To: "'Tomcat Users List'" Subject: RE: When is init() called? Date: Thu, 11 May 2006 09:14:30 -0400 Message-ID: <00c801c674fc$d6a7a750$3a0119ac@tim> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 Thread-Index: AcZ08/MJkQBcX8sERFqbYN4mDY4qhQACKocQ In-Reply-To: <44631EFB.6060108@keizensoftware.com> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N init() is called when the servlet is instantiated. If you have 1 then it will get called when the web app is (re)started. Otherwise, it will get called when the first request for it is made. To answer you're a) or b) question, it is both a and b. Tim -----Original Message----- From: Martin Grogan [mailto:mgrogan@keizensoftware.com] Sent: Thursday, May 11, 2006 7:25 AM To: Tomcat Users List Subject: When is init() called? Hi all, I'm new to the list. I was trying to find out exactly when Tomcat will call a servlets init() method. Is it a) When tomcat is restarted or b) When I restart my web-app context from the Tomcat manager panel. I ask because we run web-apps on a shared hosting server and don't have control over when Tomcat gets restarted, but would need to re-init() our servlets from time to time. We are running on Tomcat 5.5.7 Thanks, Martin ------------ Martin Grogan Keizen Software mgrogan@keizensoftware.com www.keizensoftware.com --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org