Return-Path: Delivered-To: apmail-geronimo-activemq-users-archive@www.apache.org Received: (qmail 57178 invoked from network); 4 Jan 2007 15:43:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 4 Jan 2007 15:43:38 -0000 Received: (qmail 98276 invoked by uid 500); 4 Jan 2007 15:43:31 -0000 Delivered-To: apmail-geronimo-activemq-users-archive@geronimo.apache.org Received: (qmail 98257 invoked by uid 500); 4 Jan 2007 15:43:31 -0000 Mailing-List: contact activemq-users-help@geronimo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: activemq-users@geronimo.apache.org Delivered-To: mailing list activemq-users@geronimo.apache.org Received: (qmail 98235 invoked by uid 99); 4 Jan 2007 15:43:31 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Jan 2007 07:43:31 -0800 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [66.195.191.23] (HELO mercury.nmwco.com) (66.195.191.23) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Jan 2007 07:43:21 -0800 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C73017.03BA71BB" Subject: dangling thread after shutdown broker with a managed transport Date: Thu, 4 Jan 2007 07:43:00 -0800 Message-ID: <68B9548ED9F8A341B21CDB320655D613026FE458@mercury.nmwco.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: dangling thread after shutdown broker with a managed transport Thread-Index: AccwFwNvMVocx8PARJ+V96wEI+s6BA== From: "Chris Hofstaedter" To: X-Virus-Checked: Checked by ClamAV on apache.org ------_=_NextPart_001_01C73017.03BA71BB Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable I ran into a problem in which I end up with an orphaned thread every time I bounce a broker with a managed transport. I realize this may not be a big deal in many scenarios, but we may end up bouncing our broker everytime a user changes some configuration settings in our application and we need the app to run indefinitely. So orphaned threads are a concern to me. =20 I traced it down to BrokerService.startTransportConnector(). =20 In this function, if isUseJmx() returns true, the connector is decorated/replaced through a call to connector.asManagedConnector(). Turns out the broker never stores the reference to the newly created managed connector anywhere. I added transportConnectors.add(connector) to add the new managed connector to the broker's container of connectors and it seems to work in that all threads are shutdown cleanly even when the transport connector is managed. =20 Does this seem like a reasonable change and should I create a JIRA to capture the change? ------_=_NextPart_001_01C73017.03BA71BB--