Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@www.apache.org Received: (qmail 24291 invoked from network); 30 Sep 2005 15:51:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 30 Sep 2005 15:51:23 -0000 Received: (qmail 93403 invoked by uid 500); 30 Sep 2005 15:51:08 -0000 Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 93390 invoked by uid 500); 30 Sep 2005 15:51:08 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: 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 93379 invoked by uid 99); 30 Sep 2005 15:51:08 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 Sep 2005 08:51:08 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [203.129.246.73] (HELO robosoftin.com) (203.129.246.73) by apache.org (qpsmtpd/0.29) with SMTP; Fri, 30 Sep 2005 08:51:13 -0700 Received: from WorldClient ([127.0.0.1]) by robosoftin.com (robosoftin.com [127.0.0.1]) (MDaemon.PRO.v7.2.3.R) with ESMTP id md50000618128.msg; Fri, 30 Sep 2005 21:28:50 +0530 Received: from [10.10.1.5] via WorldClient with HTTP; Fri, 30 Sep 2005 21:28:47 +0530 Date: Fri, 30 Sep 2005 21:28:47 +0530 From: "Mahesh S Kudva" To: "Tomcat Users List" , Subject: Re: Multiple Threads for one webapp MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit Message-ID: X-Mailer: WorldClient 7.2.3 In-Reply-To: <433D43F9.1080506@joedog.org> References: <433D43F9.1080506@joedog.org> X-Spam-Processed: robosoftin.com, Fri, 30 Sep 2005 21:28:50 +0530 (not processed: message from valid local sender) X-MDRemoteIP: 127.0.0.1 X-Return-Path: mahesh.kudva@robosoftin.com X-MDaemon-Deliver-To: tomcat-user@jakarta.apache.org X-MDAV-Processed: robosoftin.com, Fri, 30 Sep 2005 21:28:54 +0530 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi I have restarted Tomact and made sure no threads run in the background. But still the problem persists. Every time tomcat is restarted, I can see the notification thread start "Notification thread started.......32237" Regards & Thanks ================ Mahesh S Kudva -----Original Message----- From: Tim Funk To: Tomcat Users List Date: Fri, 30 Sep 2005 09:56:09 -0400 Subject: Re: Multiple Threads for one webapp > It seems you have a thread started in the background during the life of > the > application. > This thread goes to some external place of storage and to look for > emails to > send. > It seems this thread is not stopped when a context is reloaded. > When the app is reloaded - a new thread is started. > In this case - the app was restarted 6 times - leaving you 7 threads > all > looking to the smae external loctation for sending emails. > > Solution: Use a ServletContextListerner to detect webapp shutdown so > the > thread may be stopped. > > > -Tim > > Mahesh S Kudva wrote: > > > Hi All > > > > I have setup virtual hosts for 3 apps with virtual hosts config as > > follows. These virtual hosts are first handled by Apache and mod_jk. > My > > apps have scheduler and automated mailing services. > > > > > unpackWARs="true"> > > www.vhost.domain.com > > > directory="${jboss.server.home.dir}/log" > > prefix="vhost_log1." suffix=".log" timestamp="true"/> > > > docBase="${jboss.server.home.dir}/deploy/application.war" debug="0" > > reloadable="true"/> > > > > > > This config is mailing the same mail 7 time. Further I noticed that > > there were 7 service started of the same kind. Querying the > developer, > > he said that he had coded the apps to have the mail sent once every > week. > > The mails are sent once every week but as said 7 copies of the same > mail > > is delivered. > > > > The request for the app results in page not found if I follow the > > following config, even thought there is no error in startup. > > > > > docBase="${jboss.server.home.dir}/deploy/application.war" debug="0" > > reloadable="true"/> > > > > > > > > Can you guys have any idea on this and help me troubleshoot ??? > > > > > > Regards & Thanks > > ================ > > Mahesh S Kudva > > > > > > ------------------------------------------------------- > > Robosoft Technologies - Partners in Product Development > > > > > > --------------------------------------------------------------------- > > 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 ------------------------------------------------------- Robosoft Technologies - Partners in Product Development --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org