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 8B5EA923B for ; Wed, 15 May 2013 00:05:10 +0000 (UTC) Received: (qmail 99063 invoked by uid 500); 15 May 2013 00:05:07 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 98954 invoked by uid 500); 15 May 2013 00:05:06 -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 98938 invoked by uid 99); 15 May 2013 00:05:06 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 May 2013 00:05:06 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of dckerber@verizon.net designates 206.46.173.11 as permitted sender) Received: from [206.46.173.11] (HELO vms173011pub.verizon.net) (206.46.173.11) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 May 2013 00:04:58 +0000 Received: from [192.168.11.7] ([unknown] [108.34.148.198]) by vms173011.mailsrvcs.net (Sun Java(tm) System Messaging Server 7u2-7.02 32bit (built Apr 16 2009)) with ESMTPA id <0MMT004MQC773X60@vms173011.mailsrvcs.net> for users@tomcat.apache.org; Tue, 14 May 2013 19:04:19 -0500 (CDT) Message-id: <5192D101.3000901@verizon.net> Date: Tue, 14 May 2013 20:04:17 -0400 From: David Kerber User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:17.0) Gecko/20130328 Thunderbird/17.0.5 MIME-version: 1.0 To: Tomcat Users List Subject: Re: Port still busy after removing connector in Embedded Tomcat 7.0.30 References: <1368459254.93560.YahooMailNeo@web190701.mail.sg3.yahoo.com> <519156F1.5040206@apache.org> <1368502452.16159.YahooMailNeo@web190703.mail.sg3.yahoo.com> <5192036F.9080000@apache.org> In-reply-to: <5192036F.9080000@apache.org> Content-type: text/plain; charset=ISO-8859-1; format=flowed Content-transfer-encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org On 5/14/2013 5:27 AM, Mark Thomas wrote: > On 14/05/2013 04:34, Chirag Dewan wrote: >> >> >>> You need to destroy the connector to close the port. >> >> Mark, >> >> That seems to work. :) >> >> Now the port is free. But is it the right approach? > > You had a problem you couldn't solve. Someone with an @apache.org e-mail > address (i.e. an Apache committer and probably a Tomcat committer - > something you can easily check) provided a solution that worked and you > are asking if that solution is correct? I am trying very hard not to be > to be extremely sarcastic right now. Mark, remember that most people's e-mail clients will only show the "friendly" name of the e-mail sender if it's available, not the full e-mail address, so he probably didn't see your @Apache.org address. Those of us who have been participating (or at least lurking) here for a while understand that you know pretty much everything there is to know about tomcat, but a new poster may not, so I'd give him the benefit of the doubt on this. D > >> Is this something we need to do in Tomcat 7 specifically? > > There was a lot of lifecycle clean-up in Tomcat 7 including: > - using the same interface for all components > - adding JMX registration consistently > - making sure things were symmetric (what is done in init() is undone in > destroy(), what is done in start() is undone in stop()) > > It is likely that binding and unbinding of the port were different in > Tomcat 6 but I haven't checked svn to confirm this. > > Sockets in Tomcat 7 connectors are bound in init() and unbound in > destroy() by default although you can change this to start() and stop() > by setting the bindOnInit attribute on the connector to false. > > Mark > > > --------------------------------------------------------------------- > 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