Return-Path: X-Original-To: apmail-activemq-users-archive@www.apache.org Delivered-To: apmail-activemq-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 0FA55E5A3 for ; Wed, 6 Feb 2013 16:57:18 +0000 (UTC) Received: (qmail 63272 invoked by uid 500); 6 Feb 2013 16:57:17 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 63217 invoked by uid 500); 6 Feb 2013 16:57:16 -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 63208 invoked by uid 99); 6 Feb 2013 16:57:16 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Feb 2013 16:57:16 +0000 X-ASF-Spam-Status: No, hits=2.4 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of frenz2@gmx.net designates 212.227.17.20 as permitted sender) Received: from [212.227.17.20] (HELO mout.gmx.net) (212.227.17.20) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Feb 2013 16:57:06 +0000 Received: from mailout-de.gmx.net ([10.1.76.19]) by mrigmx.server.lan (mrigmx001) with ESMTP (Nemesis) id 0LaZKz-1Uo2qH0mKN-00mNhs for ; Wed, 06 Feb 2013 17:56:46 +0100 Received: (qmail invoked by alias); 06 Feb 2013 16:56:45 -0000 Received: from ip-83-99-93-212.dyn.luxdsl.pt.lu (EHLO frenzPC) [83.99.93.212] by mail.gmx.net (mp019) with SMTP; 06 Feb 2013 17:56:45 +0100 X-Authenticated: #44495581 X-Provags-ID: V01U2FsdGVkX18G9ENeUDEGHDR25780tcuJnbwmhSvq+6rsxP3aT+ u9SPmMhOhkxBLu From: =?iso-8859-1?Q?Fran=E7ois_Thillen?= To: Subject: Closing connection Date: Wed, 6 Feb 2013 17:56:46 +0100 Message-ID: <005401ce048a$f313eb90$d93bc2b0$@gmx.net> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0055_01CE0493.54DAEBA0" X-Mailer: Microsoft Outlook 14.0 Thread-Index: Ac4EibAW7dVRl1FzQV+o5nPsiRt5zw== Content-Language: lb-lu X-Y-GMX-Trusted: 0 X-Virus-Checked: Checked by ClamAV on apache.org ------=_NextPart_000_0055_01CE0493.54DAEBA0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Dear Apache team, =20 I have a problem with closing a connection in my c# project. =20 Always when I open the connection, i am closing it as well. However, = when I close the complete application, ActiveMQ is blocking and so it is not possible to close the my application. Here is my connection code: =20 protected void Configure() { try { Destination dest =3D new = Destination(string_destination); Uri connectionUri =3D new Uri(dest.Host); factory =3D new Apache.NMS.ActiveMQ.ConnectionFactory(connectionUri); connection =3D factory.CreateConnection(); session =3D connection.CreateSession(); connection.Start(); this.destination =3D session.GetDestination(dest.Queue); } catch (Exception ex) { handling.HandleException(ex); } } =20 protected void Close() { session.Close(); session.Dispose(); //connection.Stop(); connection.Close(); connection.Dispose(); connection =3D null; close =3D true; } =20 I figured out that ActiveMQ blockes in the Class ThreadPoolExecutor.cs = at the line 122 (this.executionComplete.WaitOne();) =20 Did I missed closing something? =20 Thank you very much =20 Best regards Fran=E7ois ------=_NextPart_000_0055_01CE0493.54DAEBA0--