Return-Path: X-Original-To: apmail-tomcat-users-archive@www.apache.org Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6AA58631A for ; Wed, 1 Jun 2011 19:09:49 +0000 (UTC) Received: (qmail 16132 invoked by uid 500); 1 Jun 2011 19:09:46 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 15974 invoked by uid 500); 1 Jun 2011 19:09:45 -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 15965 invoked by uid 99); 1 Jun 2011 19:09:45 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Jun 2011 19:09:45 +0000 X-ASF-Spam-Status: No, hits=0.7 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [76.96.59.211] (HELO QMTA11.westchester.pa.mail.comcast.net) (76.96.59.211) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Jun 2011 19:09:38 +0000 Received: from omta03.westchester.pa.mail.comcast.net ([76.96.62.27]) by QMTA11.westchester.pa.mail.comcast.net with comcast id qj8P1g0030bG4ec5Bj9J8q; Wed, 01 Jun 2011 19:09:18 +0000 Received: from [192.168.1.201] ([69.143.109.145]) by omta03.westchester.pa.mail.comcast.net with comcast id qj9D1g00Y38FjT13Pj9Ebt; Wed, 01 Jun 2011 19:09:17 +0000 Message-ID: <4DE68E57.90304@christopherschultz.net> Date: Wed, 01 Jun 2011 15:09:11 -0400 From: Christopher Schultz User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.17) Gecko/20110414 Thunderbird/3.1.10 MIME-Version: 1.0 To: Tomcat Users List Subject: Re: Source of after_start and stop LifecycleEvent References: In-Reply-To: X-Enigmail-Version: 1.2a1pre Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Stevo, > On Wed, Jun 1, 2011 at 4:42 PM, Stevo Slavić wrote: >> Hello Tomcat users, >> >> Does anyone know has it been changed after Apache Tomcat 6.0.13 that >> source of LifecycleEvent of "after_start" and "stop" type is >> org.apache.catalina.core.StandardEngine instead of >> org.apache.catalina.Server? >> >> [Pardon, it's StandardService and not StandardEngine that's source of >> these events (Apache Tomcat 6.0.32).] >> >> I'm experiencing issues with JBoss mod_cluster: >> http://community.jboss.org/thread/167432 >> >> Its LifecycleListener, >> http://anonsvn.jboss.org/repos/mod_cluster/trunk/src/main/java/org/jboss/modcluster/catalina/ModClusterListener.java >> expects source of after_start and stop event to be >> org.apache.catalina.Server but when debugging I see that it's >> org.apache.catalina.core.StandardEngine. It looks like several components (in trunk, currently 6.0.32+) issue AFTER_START and STOP lifecycle events: java/org/apache/catalina/core/StandardThreadExecutor.java java/org/apache/catalina/core/StandardServer.java java/org/apache/catalina/core/StandardContext.java java/org/apache/catalina/core/ContainerBase.java java/org/apache/catalina/core/StandardService.java java/org/apache/catalina/core/StandardPipeline.java java/org/apache/catalina/ha/tcp/SimpleTcpCluster.java So, StandardServer does issue such events and should be handled correctly by the code you indicated, but StandardService also sends those events and if you want to handle those as well, you'll have to do so. - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk3mjlcACgkQ9CaO5/Lv0PACnwCfWnICcaQa+/5UDFjDa2APDeLP WPgAn2Az5qtm6l1udDNGcXmw96673iVW =de2w -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org