Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 32277 invoked from network); 25 Jun 2007 10:58:09 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 25 Jun 2007 10:58:09 -0000 Received: (qmail 59418 invoked by uid 500); 25 Jun 2007 10:58:11 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 59398 invoked by uid 500); 25 Jun 2007 10:58:11 -0000 Mailing-List: contact users-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@activemq.apache.org Delivered-To: mailing list users@activemq.apache.org Received: (qmail 59385 invoked by uid 99); 25 Jun 2007 10:58:11 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Jun 2007 03:58:11 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Jun 2007 03:58:07 -0700 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1I2mGQ-0002ut-FC for users@activemq.apache.org; Mon, 25 Jun 2007 03:57:46 -0700 Message-ID: <11284483.post@talk.nabble.com> Date: Mon, 25 Jun 2007 03:57:46 -0700 (PDT) From: Jim_Cross To: users@activemq.apache.org Subject: Re: Orphan connections from .NET clients In-Reply-To: <11269315.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: jimcross1981@googlemail.com References: <4666F712.6000201@blackspark.com> <11269315.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org Hi Chris, My shutdown code looks like this, but I still get the problem: if (consumer != null) { consumer.Close(); consumer.Dispose(); } if (session != null) { session.Close(); session.Dispose(); } if(connection != null) { connection.Stop(); connection.Close(); connection.Dispose(); } Are you doing anything different to that? Dris wrote: > > Have you tried explicitly calling connection.Dispose() before exiting your > program? To get round this problem I just called Close() and Dispose() on > every NMS object that exposed either or both those methods and it seemed > to work for me. I suspect that just disposing of the connection may be > enough to do the job though. I would be interested to know what happens > for you. > > Chris > > -- View this message in context: http://www.nabble.com/Orphan-connections-from-.NET-clients-tf3879502s2354.html#a11284483 Sent from the ActiveMQ - User mailing list archive at Nabble.com.